summaryrefslogtreecommitdiff
path: root/reportdesign
diff options
context:
space:
mode:
authorBrij Mohan Lal Srivastava <contactbrijmohan@gmail.com>2014-11-12 14:24:10 +0530
committerStephan Bergmann <sbergman@redhat.com>2014-11-14 09:20:38 +0100
commitd32be3ace8c8fd430bbecdf69f88a116b0ee91d1 (patch)
treeb373c084cb124434e0498867b24bc7bb333155dd /reportdesign
parentf5e86ebc097f0f8bc5b282511149cb026710ecde (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 'reportdesign')
-rw-r--r--reportdesign/source/ui/misc/UITools.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/reportdesign/source/ui/misc/UITools.cxx b/reportdesign/source/ui/misc/UITools.cxx
index 1966f7bcbfef..59733116c6d8 100644
--- a/reportdesign/source/ui/misc/UITools.cxx
+++ b/reportdesign/source/ui/misc/UITools.cxx
@@ -783,21 +783,21 @@ void applyCharacterSettings( const uno::Reference< report::XReportControlFormat
if ( aSettings.get( "Font" ) >>= aAwtFont )
{
OUString sTemp = aAwtFont.Name;
- aAwtFont.Name = OUString(); // hack to
+ aAwtFont.Name.clear(); // hack to
_rxReportControlFormat->setFontDescriptor( aAwtFont );
_rxReportControlFormat->setCharFontName( sTemp );
}
if ( aSettings.get( "FontAsian" ) >>= aAwtFont )
{
OUString sTemp = aAwtFont.Name;
- aAwtFont.Name = OUString(); // hack to
+ aAwtFont.Name.clear(); // hack to
_rxReportControlFormat->setFontDescriptorAsian( aAwtFont );
_rxReportControlFormat->setCharFontNameAsian( sTemp );
}
if ( aSettings.get( "FontComplex" ) >>= aAwtFont )
{
OUString sTemp = aAwtFont.Name;
- aAwtFont.Name = OUString(); // hack to
+ aAwtFont.Name.clear(); // hack to
_rxReportControlFormat->setFontDescriptorComplex( aAwtFont );
_rxReportControlFormat->setCharFontNameComplex( sTemp );
}