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 /framework/inc/classes | |
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 'framework/inc/classes')
-rw-r--r-- | framework/inc/classes/filtercachedata.hxx | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/framework/inc/classes/filtercachedata.hxx b/framework/inc/classes/filtercachedata.hxx index c490d116a8ab..31222930867a 100644 --- a/framework/inc/classes/filtercachedata.hxx +++ b/framework/inc/classes/filtercachedata.hxx @@ -88,9 +88,9 @@ struct FileType inline void impl_clear() { bPreferred = false; - sName = OUString(); - sMediaType = OUString(); - sClipboardFormat = OUString(); + sName.clear(); + sMediaType.clear(); + sClipboardFormat.clear(); nDocumentIconID = 0; lUINames.free (); lURLPattern.free(); @@ -148,14 +148,14 @@ struct Filter inline void impl_clear() { nOrder = 0; - sName = OUString(); - sType = OUString(); - sDocumentService = OUString(); - sFilterService = OUString(); - sUIComponent = OUString(); + sName.clear(); + sType.clear(); + sDocumentService.clear(); + sFilterService.clear(); + sUIComponent.clear(); nFlags = 0; nFileFormatVersion = 0; - sTemplateName = OUString(); + sTemplateName.clear(); lUINames.free (); lUserData.free (); } @@ -215,7 +215,7 @@ struct Detector inline void impl_clear() { - sName = OUString(); + sName.clear(); lTypes.free(); } @@ -256,7 +256,7 @@ struct Loader inline void impl_clear() { - sName = OUString(); + sName.clear(); lUINames.free (); lTypes.free (); } @@ -299,7 +299,7 @@ struct ContentHandler inline void impl_clear() { - sName = OUString(); + sName.clear(); lTypes.free(); } |