diff options
author | Brij Mohan Lal Srivastava <contactbrijmohan@gmail.com> | 2014-11-12 14:24:10 +0530 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-11-14 09:20:38 +0100 |
commit | d32be3ace8c8fd430bbecdf69f88a116b0ee91d1 (patch) | |
tree | b373c084cb124434e0498867b24bc7bb333155dd /avmedia/source/framework | |
parent | f5e86ebc097f0f8bc5b282511149cb026710ecde (diff) |
fdo#86023 - O[U]String needs a 'clear' method
Added clear() method to OString and OUString class, Updated appropriate call-sites.
Change-Id: I0ba97fa6dc7af3e31b605953089a4e8e9c3e61ac
Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'avmedia/source/framework')
-rw-r--r-- | avmedia/source/framework/mediaitem.cxx | 2 | ||||
-rw-r--r-- | avmedia/source/framework/modeltools.cxx | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/avmedia/source/framework/mediaitem.cxx b/avmedia/source/framework/mediaitem.cxx index 7861446c2d63..3b3352916c77 100644 --- a/avmedia/source/framework/mediaitem.cxx +++ b/avmedia/source/framework/mediaitem.cxx @@ -133,7 +133,7 @@ bool MediaItem::GetPresentation( SfxItemPresentation, OUString& rText, const IntlWrapper * ) const { - rText = OUString(); + rText.clear(); return false; } diff --git a/avmedia/source/framework/modeltools.cxx b/avmedia/source/framework/modeltools.cxx index 003c84ce349e..524e37a386ee 100644 --- a/avmedia/source/framework/modeltools.cxx +++ b/avmedia/source/framework/modeltools.cxx @@ -48,7 +48,7 @@ namespace avmedia { static void lcl_UnzipKmz(const OUString& rSourceURL, const OUString& rOutputFolderURL, OUString& o_rDaeFileURL) { - o_rDaeFileURL = OUString(); + o_rDaeFileURL.clear(); uno::Reference<packages::zip::XZipFileAccess2> xNameAccess = packages::zip::ZipFileAccess::createWithURL(comphelper::getProcessComponentContext(), rSourceURL); uno::Sequence< OUString > aNames = xNameAccess->getElementNames(); @@ -70,7 +70,7 @@ static void lcl_UnzipKmz(const OUString& rSourceURL, const OUString& rOutputFold bool KmzDae2Gltf(const OUString& rSourceURL, OUString& o_rOutput) { - o_rOutput = OUString(); + o_rOutput.clear(); const bool bIsDAE = rSourceURL.endsWithIgnoreAsciiCase(".dae"); const bool bIsKMZ = rSourceURL.endsWithIgnoreAsciiCase(".kmz"); if( !bIsDAE && !bIsKMZ ) |