summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-02-10 11:08:51 +0000
committerCaolán McNamara <caolanm@redhat.com>2012-02-10 11:09:08 +0000
commit39bfd6c0bcce78a13eda4566741be3ae06152cb1 (patch)
tree1613203ba4a1d7e6d72eb520a269f523712337a4 /sc
parent9c19e79f19f0dbd55def4a0cf473248ea91e188e (diff)
can use direct operator[] variants
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/docshell/docsh.cxx6
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);