Kaydet (Commit) 39bfd6c0 authored tarafından Caolán McNamara's avatar Caolán McNamara

can use direct operator[] variants

üst 9c19e79f
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment