summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2013-03-15 01:20:05 +0100
committerThomas Arnhold <thomas@arnhold.org>2013-03-15 01:20:05 +0100
commit7295d392ea3908c3a789ec8cf50dd91fc02299bb (patch)
treebe680abcc76b3c679acea1e89e81a9a53203765d /sc
parent3cafeddf42e128110bf69ce93af39658080d7c63 (diff)
fixes
from b0cf3aba085373d84a55ef144b273a8a89d017af Change-Id: I03a7df23ea9838715304d0359536403af89bcfa3
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/data/global.cxx4
-rw-r--r--sc/source/core/tool/stringutil.cxx2
-rw-r--r--sc/source/filter/excel/xicontent.cxx2
-rw-r--r--sc/source/filter/ftools/ftools.cxx2
-rw-r--r--sc/source/ui/dbgui/validate.cxx2
5 files changed, 6 insertions, 6 deletions
diff --git a/sc/source/core/data/global.cxx b/sc/source/core/data/global.cxx
index 52aeae808c14..2d439ee88893 100644
--- a/sc/source/core/data/global.cxx
+++ b/sc/source/core/data/global.cxx
@@ -822,7 +822,7 @@ void ScGlobal::AddQuotes( OUString& rString, sal_Unicode cQuote, bool bEscapeEmb
pQ[0] = pQ[1] = cQuote;
pQ[2] = 0;
rtl::OUString aQuotes( pQ );
- rString.replaceAll( OUString(cQuote), aQuotes);
+ rString = rString.replaceAll( OUString(cQuote), aQuotes);
}
rString = OUString( cQuote ) + OUString( cQuote );
}
@@ -838,7 +838,7 @@ void ScGlobal::EraseQuotes( OUString& rString, sal_Unicode cQuote, bool bUnescap
pQ[0] = pQ[1] = cQuote;
pQ[2] = 0;
rtl::OUString aQuotes( pQ );
- rString.replaceAll( aQuotes, OUString(cQuote));
+ rString = rString.replaceAll( aQuotes, OUString(cQuote));
}
}
}
diff --git a/sc/source/core/tool/stringutil.cxx b/sc/source/core/tool/stringutil.cxx
index e196d6592502..14ea6748f063 100644
--- a/sc/source/core/tool/stringutil.cxx
+++ b/sc/source/core/tool/stringutil.cxx
@@ -238,7 +238,7 @@ sal_Int32 ScStringUtil::GetQuotedTokenCount(const OUString &rIn, const OUString&
OUString ScStringUtil::GetQuotedToken(const OUString &rIn, sal_Int32 nToken, const OUString& rQuotedPairs,
sal_Unicode cTok, sal_Int32& rIndex )
{
- assert( !(rQuotedPairs.Len()%2) );
+ assert( !(rQuotedPairs.getLength()%2) );
assert( rQuotedPairs.indexOf(cTok) == -1 );
const sal_Unicode* pStr = rIn.getStr();
diff --git a/sc/source/filter/excel/xicontent.cxx b/sc/source/filter/excel/xicontent.cxx
index fef829bedcff..de6fd1370187 100644
--- a/sc/source/filter/excel/xicontent.cxx
+++ b/sc/source/filter/excel/xicontent.cxx
@@ -955,7 +955,7 @@ void XclImpWebQuery::ReadWqtables( XclImpStream& rStrm )
else
{
ScGlobal::EraseQuotes( aToken, '"', false );
- if( aToken.getLength() )
+ if( !aToken.isEmpty() )
maTables = ScGlobal::addToken( maTables, ScfTools::GetNameFromHTMLName( aToken ), cSep );
}
}
diff --git a/sc/source/filter/ftools/ftools.cxx b/sc/source/filter/ftools/ftools.cxx
index 569d3a4e56ca..5cf7042db873 100644
--- a/sc/source/filter/ftools/ftools.cxx
+++ b/sc/source/filter/ftools/ftools.cxx
@@ -340,7 +340,7 @@ bool ScfTools::GetHTMLNameFromName( const String& rSource, OUString& rName )
if( CharClass::isAsciiNumeric( aIndex ) && (aIndex.toInt32() > 0) )
rName = aIndex;
}
- return rName.getLength() > 0;
+ return !rName.isEmpty();
}
ScFormatFilterPluginImpl::ScFormatFilterPluginImpl() {}
diff --git a/sc/source/ui/dbgui/validate.cxx b/sc/source/ui/dbgui/validate.cxx
index e66c5da4ff31..d04e361d9972 100644
--- a/sc/source/ui/dbgui/validate.cxx
+++ b/sc/source/ui/dbgui/validate.cxx
@@ -283,7 +283,7 @@ bool lclGetStringListFromFormula( OUString& rStringList, const OUString& rFmlaSt
{
OUString aToken( ScStringUtil::GetQuotedToken(rFmlaStr, 0, aQuotes, cFmlaSep, nStringIx ) );
aToken = comphelper::string::strip(aToken, ' ');
- if( aToken.getLength() ) // ignore empty tokens, i.e. "a";;"b"
+ if( !aToken.isEmpty() ) // ignore empty tokens, i.e. "a";;"b"
{
bIsStringList = ScGlobal::IsQuoted( aToken, '"' );
if( bIsStringList )