Kaydet (Commit) 66da602f authored tarafından Matteo Casalin's avatar Matteo Casalin

Fix TRUE to sal_True conversion in string

This would lead to always false condition, since that text should
be uppercase.
Introduced in d210c6cc.
Reduce parentheses while at it.

Change-Id: Iec9cbbfd0a596ad1d4dcba50aa3a5c00a54ef425
Reviewed-on: https://gerrit.libreoffice.org/69234
Tested-by: Jenkins
Reviewed-by: 's avatarMatteo Casalin <matteo.casalin@yahoo.com>
üst 4aa8a6ab
...@@ -234,8 +234,8 @@ void CfgParser::ExecuteAnalyzedToken( int nToken, char *pToken ) ...@@ -234,8 +234,8 @@ void CfgParser::ExecuteAnalyzedToken( int nToken, char *pToken )
if ( sSearch == "cfg:name=" ) { if ( sSearch == "cfg:name=" ) {
OString sTemp( sToken.toAsciiUpperCase() ); OString sTemp( sToken.toAsciiUpperCase() );
bLocalize = (( sTemp.indexOf( "CFG:TYPE=\"STRING\"" ) != -1 ) && bLocalize = sTemp.indexOf("CFG:TYPE=\"STRING\"")>=0
( sTemp.indexOf( "CFG:LOCALIZED=\"sal_True\"" ) != -1 )); && sTemp.indexOf( "CFG:LOCALIZED=\"TRUE\"" )>=0;
} }
} }
else if ( sTokenName == "label" ) { else if ( sTokenName == "label" ) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment