diff options
-rw-r--r-- | shell/source/backends/desktopbe/desktopbackend.cxx | 2 | ||||
-rw-r--r-- | xmloff/source/style/xmlnumfi.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/shell/source/backends/desktopbe/desktopbackend.cxx b/shell/source/backends/desktopbe/desktopbackend.cxx index 52c941cb99aa..dfb9b6d32993 100644 --- a/shell/source/backends/desktopbe/desktopbackend.cxx +++ b/shell/source/backends/desktopbe/desktopbackend.cxx @@ -228,7 +228,7 @@ OUString xdg_user_dir_lookup (const char *type) } else { - aUserDirBuf = OUStringBuffer(); + aUserDirBuf.truncate(); } while (*p && *p != '"') { diff --git a/xmloff/source/style/xmlnumfi.cxx b/xmloff/source/style/xmlnumfi.cxx index 11e703f4d947..e4298ab13484 100644 --- a/xmloff/source/style/xmlnumfi.cxx +++ b/xmloff/source/style/xmlnumfi.cxx @@ -1128,7 +1128,7 @@ void SvXMLNumFmtElementContext::EndElement() if ( rParent.ReplaceNfKeyword( NF_KEY_NNN, NF_KEY_NNNN ) ) { - aContent = OUStringBuffer(); + aContent.truncate(); } rParent.SetHasLongDoW( false ); // only once |