diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2019-02-23 19:21:40 +0100 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2019-03-14 19:22:17 +0100 |
commit | 66da602fb911d73e89fa7662dcea5840b449241f (patch) | |
tree | df33ad9c731dc75202f9247d45fc397944f22618 /l10ntools | |
parent | 4aa8a6ab08b755e3d82860e8dbc294f854336477 (diff) |
Fix TRUE to sal_True conversion in string
This would lead to always false condition, since that text should
be uppercase.
Introduced in d210c6ccc30466e98240c1409df0550514668d68.
Reduce parentheses while at it.
Change-Id: Iec9cbbfd0a596ad1d4dcba50aa3a5c00a54ef425
Reviewed-on: https://gerrit.libreoffice.org/69234
Tested-by: Jenkins
Reviewed-by: Matteo Casalin <matteo.casalin@yahoo.com>
Diffstat (limited to 'l10ntools')
-rw-r--r-- | l10ntools/source/cfgmerge.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/l10ntools/source/cfgmerge.cxx b/l10ntools/source/cfgmerge.cxx index ebe8487aa599..0c1167da1a3b 100644 --- a/l10ntools/source/cfgmerge.cxx +++ b/l10ntools/source/cfgmerge.cxx @@ -234,8 +234,8 @@ void CfgParser::ExecuteAnalyzedToken( int nToken, char *pToken ) if ( sSearch == "cfg:name=" ) { OString sTemp( sToken.toAsciiUpperCase() ); - bLocalize = (( sTemp.indexOf( "CFG:TYPE=\"STRING\"" ) != -1 ) && - ( sTemp.indexOf( "CFG:LOCALIZED=\"sal_True\"" ) != -1 )); + bLocalize = sTemp.indexOf("CFG:TYPE=\"STRING\"")>=0 + && sTemp.indexOf( "CFG:LOCALIZED=\"TRUE\"" )>=0; } } else if ( sTokenName == "label" ) { |