[Libreoffice-commits] core.git: starmath/source
Takeshi Abe
tabe at fixedpoint.jp
Thu Mar 24 11:56:00 UTC 2016
starmath/source/smmod.cxx | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
New commits:
commit 641c40b32aaea89add1c7acd3e17c949592c582a
Author: Takeshi Abe <tabe at fixedpoint.jp>
Date: Thu Mar 24 17:25:35 2016 +0900
starmath: Drop unnecessary check of loop invariant
Change-Id: I7f5f2b7e9fda1d788e8f92ffda619c46523a91d5
Reviewed-on: https://gerrit.libreoffice.org/23485
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Björn Michaelsen <bjoern.michaelsen at canonical.com>
diff --git a/starmath/source/smmod.cxx b/starmath/source/smmod.cxx
index f44151c..1d8fa98 100644
--- a/starmath/source/smmod.cxx
+++ b/starmath/source/smmod.cxx
@@ -76,7 +76,7 @@ const OUString SmLocalizedSymbolData::GetUiSymbolName( const OUString &rExportNa
const ResStringArray &rUiNames = rData.GetUiSymbolNamesArray();
const ResStringArray &rExportNames = rData.GetExportSymbolNamesArray();
sal_uInt32 nCount = rExportNames.Count();
- for (sal_uInt32 i = 0; i < nCount && aRes.isEmpty(); ++i)
+ for (sal_uInt32 i = 0; i < nCount; ++i)
{
if (rExportNames.GetString(i).equals(rExportName))
{
@@ -97,7 +97,7 @@ const OUString SmLocalizedSymbolData::GetExportSymbolName( const OUString &rUiNa
const ResStringArray &rUiNames = rData.GetUiSymbolNamesArray();
const ResStringArray &rExportNames = rData.GetExportSymbolNamesArray();
sal_uInt32 nCount = rUiNames.Count();
- for (sal_uInt32 i = 0; i < nCount && aRes.isEmpty(); ++i)
+ for (sal_uInt32 i = 0; i < nCount; ++i)
{
if (rUiNames.GetString(i).equals(rUiName))
{
@@ -118,7 +118,7 @@ const OUString SmLocalizedSymbolData::GetUiSymbolSetName( const OUString &rExpor
const ResStringArray &rUiNames = rData.GetUiSymbolSetNamesArray();
const ResStringArray &rExportNames = rData.GetExportSymbolSetNamesArray();
sal_uInt32 nCount = rExportNames.Count();
- for (sal_uInt32 i = 0; i < nCount && aRes.isEmpty(); ++i)
+ for (sal_uInt32 i = 0; i < nCount; ++i)
{
if (rExportNames.GetString(i).equals(rExportName))
{
@@ -139,7 +139,7 @@ const OUString SmLocalizedSymbolData::GetExportSymbolSetName( const OUString &rU
const ResStringArray &rUiNames = rData.GetUiSymbolSetNamesArray();
const ResStringArray &rExportNames = rData.GetExportSymbolSetNamesArray();
sal_uInt32 nCount = rUiNames.Count();
- for (sal_uInt32 i = 0; i < nCount && aRes.isEmpty(); ++i)
+ for (sal_uInt32 i = 0; i < nCount; ++i)
{
if (rUiNames.GetString(i).equals(rUiName))
{
More information about the Libreoffice-commits
mailing list