Copy and replace return values must be used
Change-Id: I454a7878d56213b99f240f9912bdc9453e7dfe40
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user