diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-01-18 10:59:00 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-01-18 10:59:00 +0000 |
commit | 5ad8604d671b29c92bdef3021ea7e259f39b97cb (patch) | |
tree | 1bd03d66ea67b951939b06dceff6b22349f4c173 | |
parent | 89e4950480114e1799984d140b7c5d018687e0ff (diff) |
Use the foolproof checked macro for this
-rw-r--r-- | xmloff/source/text/txtfldi.cxx | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/xmloff/source/text/txtfldi.cxx b/xmloff/source/text/txtfldi.cxx index 9413362a50..fe88352819 100644 --- a/xmloff/source/text/txtfldi.cxx +++ b/xmloff/source/text/txtfldi.cxx @@ -2800,23 +2800,19 @@ void XMLMacroFieldImportContext::PrepareField( sal_Int32 nLength = aValues.getLength(); for( sal_Int32 i = 0; i < nLength; i++ ) { - if ( aValues[i].Name.equalsAsciiL( "ScriptType", - sizeof("ScriptType")-1 ) ) + if ( aValues[i].Name.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("ScriptType")) ) { // ignore ScriptType } - else if ( aValues[i].Name.equalsAsciiL( "Library", - sizeof("Library")-1 ) ) + else if ( aValues[i].Name.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("Library")) ) { aValues[i].Value >>= sLibraryName; } - else if ( aValues[i].Name.equalsAsciiL( "MacroName", - sizeof("MacroName")-1 ) ) + else if ( aValues[i].Name.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("MacroName")) ) { aValues[i].Value >>= sMacroName; } - if ( aValues[i].Name.equalsAsciiL( "Script", - sizeof("Script")-1 ) ) + if ( aValues[i].Name.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("Script")) ) { aValues[i].Value >>= sScriptURL; } |