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 /vcl/osx | |
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 'vcl/osx')
-rw-r--r-- | vcl/osx/DataFlavorMapping.cxx | 2 | ||||
-rw-r--r-- | vcl/osx/salframeview.mm | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/vcl/osx/DataFlavorMapping.cxx b/vcl/osx/DataFlavorMapping.cxx index 33bd19b3c46c..26e8885f6802 100644 --- a/vcl/osx/DataFlavorMapping.cxx +++ b/vcl/osx/DataFlavorMapping.cxx @@ -497,7 +497,7 @@ DataFlavor DataFlavorMapper::systemToOpenOfficeFlavor( const NSString* systemDat if( maOfficeOnlyTypes.find( aTryFlavor ) != maOfficeOnlyTypes.end() ) { oOOFlavor.MimeType = aTryFlavor; - oOOFlavor.HumanPresentableName = OUString(); + oOOFlavor.HumanPresentableName.clear(); oOOFlavor.DataType = getCppuType((Sequence<sal_Int8>*)0); } diff --git a/vcl/osx/salframeview.mm b/vcl/osx/salframeview.mm index 8f411f728390..aca5e8dc4a4d 100644 --- a/vcl/osx/salframeview.mm +++ b/vcl/osx/salframeview.mm @@ -1088,7 +1088,7 @@ private: { SalExtTextInputEvent aEvent; aEvent.mnTime = mpFrame->mnLastEventTime; - aEvent.maText = OUString(); + aEvent.maText.clear(); aEvent.mpTextAttr = NULL; aEvent.mnCursorPos = 0; aEvent.mnCursorFlags = 0; @@ -1641,7 +1641,7 @@ private: aInputEvent.mpTextAttr = &aInputFlags[0]; mpFrame->CallCallback( SALEVENT_EXTTEXTINPUT, (void *)&aInputEvent ); } else { - aInputEvent.maText = OUString(); + aInputEvent.maText.clear(); aInputEvent.mnCursorPos = 0; aInputEvent.mnCursorFlags = 0; aInputEvent.mpTextAttr = 0; |