diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-05-24 07:36:47 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-05-24 09:47:40 +0100 |
commit | a16b4676a53fdc94c63821cf14e7f24e0fe20959 (patch) | |
tree | 1c714bb3bac432f16b85f7427fab438fc9144493 /starmath | |
parent | 2862d842b3ca24cbf8c882fb59b30edc330c5fde (diff) |
convert ResStringArray to rtl::OUString
Change-Id: I51b86a10caa5da6e12583c2b22404b0d9282b13d
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/source/parse.cxx | 2 | ||||
-rw-r--r-- | starmath/source/smmod.cxx | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/starmath/source/parse.cxx b/starmath/source/parse.cxx index 9ecd5ae1a370..d3999a545d00 100644 --- a/starmath/source/parse.cxx +++ b/starmath/source/parse.cxx @@ -2376,7 +2376,7 @@ void SmParser::Special() sal_uInt16 nCount = sal::static_int_cast< sal_uInt16 >(pFrom->Count()); for (sal_uInt16 i = 0; i < nCount; ++i) { - if (pFrom->GetString(i) == rName) + if (pFrom->GetString(i).equals(rName)) { aNewName = pTo->GetString(i); bReplace = true; diff --git a/starmath/source/smmod.cxx b/starmath/source/smmod.cxx index 8b85ad2efd13..d757bcbc67ad 100644 --- a/starmath/source/smmod.cxx +++ b/starmath/source/smmod.cxx @@ -100,7 +100,7 @@ const String SmLocalizedSymbolData::GetUiSymbolName( const String &rExportName ) sal_uInt16 nCount = sal::static_int_cast< xub_StrLen >(rExportNames.Count()); for (sal_uInt16 i = 0; i < nCount && !aRes.Len(); ++i) { - if (rExportName == rExportNames.GetString(i)) + if (rExportNames.GetString(i).equals(rExportName)) { aRes = rUiNames.GetString(i); break; @@ -121,7 +121,7 @@ const String SmLocalizedSymbolData::GetExportSymbolName( const String &rUiName ) sal_uInt16 nCount = sal::static_int_cast< xub_StrLen >(rUiNames.Count()); for (sal_uInt16 i = 0; i < nCount && !aRes.Len(); ++i) { - if (rUiName == rUiNames.GetString(i)) + if (rUiNames.GetString(i).equals(rUiName)) { aRes = rExportNames.GetString(i); break; @@ -142,7 +142,7 @@ const String SmLocalizedSymbolData::GetUiSymbolSetName( const String &rExportNam sal_uInt16 nCount = sal::static_int_cast< xub_StrLen >(rExportNames.Count()); for (sal_uInt16 i = 0; i < nCount && !aRes.Len(); ++i) { - if (rExportName == rExportNames.GetString(i)) + if (rExportNames.GetString(i).equals(rExportName)) { aRes = rUiNames.GetString(i); break; @@ -163,7 +163,7 @@ const String SmLocalizedSymbolData::GetExportSymbolSetName( const String &rUiNam sal_uInt16 nCount = sal::static_int_cast< xub_StrLen >(rUiNames.Count()); for (sal_uInt16 i = 0; i < nCount && !aRes.Len(); ++i) { - if (rUiName == rUiNames.GetString(i)) + if (rUiNames.GetString(i).equals(rUiName)) { aRes = rExportNames.GetString(i); break; |