summaryrefslogtreecommitdiff
path: root/l10ntools/source
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-02-07 22:59:33 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-02-08 10:14:21 +0100
commit07b51bc2830e6035c29894e30006b61489c6fa4f (patch)
tree46e8168d9004e7b5fdc0b6114268eebdb87b3c7a /l10ntools/source
parentd7a2e94e653f1b164eeeffd32f328b7eb69a0c77 (diff)
Use OUStringLiteral
Change-Id: I6fd5f86288b303c8e3ce1cd072368df578e5e6a9
Diffstat (limited to 'l10ntools/source')
-rw-r--r--l10ntools/source/localize.cxx26
1 files changed, 12 insertions, 14 deletions
diff --git a/l10ntools/source/localize.cxx b/l10ntools/source/localize.cxx
index 1edf0a0aa2f2..4a52300570e6 100644
--- a/l10ntools/source/localize.cxx
+++ b/l10ntools/source/localize.cxx
@@ -148,26 +148,24 @@ bool handleFile(
const OString& rPotDir, bool bInitPoFile )
{
struct Command {
- char const * extension;
- sal_Int32 extensionLength;
+ OUString extension;
OString executable;
bool positive;
};
static Command const commands[] = {
- { RTL_CONSTASCII_STRINGPARAM(".src"), "transex3", false },
- { RTL_CONSTASCII_STRINGPARAM(".hrc"), "transex3", true },
- { RTL_CONSTASCII_STRINGPARAM(".ulf"), "ulfex", false },
- { RTL_CONSTASCII_STRINGPARAM(".xcu"), "cfgex", false },
- { RTL_CONSTASCII_STRINGPARAM(".xrm"), "xrmex", false },
- { RTL_CONSTASCII_STRINGPARAM("description.xml"), "xrmex", true },
- { RTL_CONSTASCII_STRINGPARAM(".xhp"), "helpex", false },
- { RTL_CONSTASCII_STRINGPARAM(".properties"), "propex", false },
- { RTL_CONSTASCII_STRINGPARAM(".ui"), "uiex", false },
- { RTL_CONSTASCII_STRINGPARAM(".tree"), "treex", false } };
+ { ".src", "transex3", false },
+ { ".hrc", "transex3", true },
+ { ".ulf", "ulfex", false },
+ { ".xcu", "cfgex", false },
+ { ".xrm", "xrmex", false },
+ { "description.xml", "xrmex", true },
+ { ".xhp", "helpex", false },
+ { ".properties", "propex", false },
+ { ".ui", "uiex", false },
+ { ".tree", "treex", false } };
for (size_t i = 0; i != SAL_N_ELEMENTS(commands); ++i)
{
- if (rUrl.endsWithAsciiL(
- commands[i].extension, commands[i].extensionLength) &&
+ if (rUrl.endsWith(commands[i].extension) &&
(commands[i].executable != "propex" || rUrl.indexOf("en_US") != -1))
{
if (commands[i].positive ? passesPositiveList(rUrl) : passesNegativeList(rUrl))