Copy and replace return values must be used

Change-Id: I454a7878d56213b99f240f9912bdc9453e7dfe40
This commit is contained in:
Julien Nabet
2013-09-08 08:31:53 +02:00
parent 69aadd51e6
commit 6fac2b8d7c

View File

@@ -2143,7 +2143,7 @@ OUString HtmlExport::getDocumentTitle()
}
}
mDocTitle.replace(0xff, ' ');
mDocTitle = mDocTitle.replace(0xff, ' ');
}
if (mDocTitle.isEmpty())
@@ -2151,7 +2151,7 @@ OUString HtmlExport::getDocumentTitle()
mDocTitle = maDocFileName;
sal_Int32 nDot = mDocTitle.indexOf('.');
if (nDot > 0)
mDocTitle.copy(0, nDot);
mDocTitle = mDocTitle.copy(0, nDot);
}
mbHeader = true;
}