diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-01-20 09:53:39 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-01-20 10:11:56 +0000 |
commit | b29069d16386d5241b46280d2c67f3a1819f9c4b (patch) | |
tree | 159879d3893f666a72f591956914a6bdecf14ad2 | |
parent | b2ae03b08b2901f9030b4c80870173fe810c9348 (diff) |
can use truncate instead of a new OUStringBuffer
Change-Id: I6efd48af1e00c21675ef0697b38185008a794d7a
-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 |