diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-02-10 11:08:51 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-02-10 11:09:08 +0000 |
commit | 39bfd6c0bcce78a13eda4566741be3ae06152cb1 (patch) | |
tree | 1613203ba4a1d7e6d72eb520a269f523712337a4 /sc | |
parent | extend unit test to islower (diff) | |
download | core-39bfd6c0bcce78a13eda4566741be3ae06152cb1.tar.gz core-39bfd6c0bcce78a13eda4566741be3ae06152cb1.zip |
can use direct operator[] variants
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/docshell/docsh.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/ui/docshell/docsh.cxx b/sc/source/ui/docshell/docsh.cxx index 87568d9462c2..d02d9d4bc1c7 100644 --- a/sc/source/ui/docshell/docsh.cxx +++ b/sc/source/ui/docshell/docsh.cxx @@ -349,7 +349,7 @@ void ScDocShell::AfterXMLLoading(sal_Bool bRet) xub_StrLen nIndex = nNameLength - nLinkTabNameLength; INetURLObject aINetURLObject(aDocURLBuffer.makeStringAndClear()); if( String(aName).Equals(String(aLinkTabName), nIndex, nLinkTabNameLength) && - (aName.getStr()[nIndex - 1] == '#') && // before the table name should be the # char + (aName[nIndex - 1] == '#') && // before the table name should be the # char !aINetURLObject.HasError()) // the docname should be a valid URL { aName = ScGlobal::GetDocTabName( aDocument.GetLinkDoc( i ), aDocument.GetLinkTab( i ) ); @@ -1947,9 +1947,9 @@ void ScDocShell::AsciiSave( SvStream& rStream, const ScImportOptions& rAsciiOpt rtl::OUString aUniString = aString;//remove that later if (!bString && cStrDelim != 0 && !aUniString.isEmpty()) { - sal_Unicode c = aUniString.getStr()[0]; + sal_Unicode c = aUniString[0]; bString = (c == cStrDelim || c == ' ' || - aUniString.getStr()[aUniString.getLength()-1] == ' ' || + aUniString[aUniString.getLength()-1] == ' ' || aUniString.indexOf(cStrDelim) >= 0); if (!bString && cDelim != 0) bString = (aUniString.indexOf(cDelim) >= 0); |