summaryrefslogtreecommitdiff
path: root/svx/source/xoutdev
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 /svx/source/xoutdev
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 'svx/source/xoutdev')
-rw-r--r--svx/source/xoutdev/xattr.cxx4
-rw-r--r--svx/source/xoutdev/xattr2.cxx32
2 files changed, 18 insertions, 18 deletions
diff --git a/svx/source/xoutdev/xattr.cxx b/svx/source/xoutdev/xattr.cxx
index b5586b3378d1..6b307c398747 100644
--- a/svx/source/xoutdev/xattr.cxx
+++ b/svx/source/xoutdev/xattr.cxx
@@ -378,7 +378,7 @@ bool XLineStyleItem::GetPresentation
OUString& rText, const IntlWrapper *
) const
{
- rText = OUString();
+ rText.clear();
sal_uInt16 nId = 0;
@@ -2130,7 +2130,7 @@ bool XFillStyleItem::GetPresentation
OUString& rText, const IntlWrapper *
) const
{
- rText = OUString();
+ rText.clear();
sal_uInt16 nId = 0;
diff --git a/svx/source/xoutdev/xattr2.cxx b/svx/source/xoutdev/xattr2.cxx
index eb478fef5142..ac87203aa363 100644
--- a/svx/source/xoutdev/xattr2.cxx
+++ b/svx/source/xoutdev/xattr2.cxx
@@ -62,7 +62,7 @@ bool XLineTransparenceItem::GetPresentation
OUString& rText, const IntlWrapper *
) const
{
- rText = OUString();
+ rText.clear();
switch ( ePres )
{
@@ -112,7 +112,7 @@ SfxPoolItem* XLineJointItem::Clone(SfxItemPool* /*pPool*/) const
bool XLineJointItem::GetPresentation( SfxItemPresentation /*ePres*/, SfxMapUnit /*eCoreUnit*/,
SfxMapUnit /*ePresUnit*/, OUString& rText, const IntlWrapper*) const
{
- rText = OUString();
+ rText.clear();
sal_uInt16 nId = 0;
@@ -316,7 +316,7 @@ SfxPoolItem* XLineCapItem::Clone(SfxItemPool* /*pPool*/) const
bool XLineCapItem::GetPresentation( SfxItemPresentation /*ePres*/, SfxMapUnit /*eCoreUnit*/,
SfxMapUnit /*ePresUnit*/, OUString& rText, const IntlWrapper*) const
{
- rText = OUString();
+ rText.clear();
sal_uInt16 nId = 0;
@@ -420,7 +420,7 @@ bool XFillTransparenceItem::GetPresentation
OUString& rText, const IntlWrapper *
) const
{
- rText = OUString();
+ rText.clear();
switch ( ePres )
{
@@ -489,7 +489,7 @@ bool XGradientStepCountItem::GetPresentation
OUString& rText, const IntlWrapper *
) const
{
- rText = OUString();
+ rText.clear();
rText += OUString::number(GetValue());
return true;
@@ -525,7 +525,7 @@ bool XFillBmpTileItem::GetPresentation
OUString& rText, const IntlWrapper *
) const
{
- rText = OUString();
+ rText.clear();
return true;
}
@@ -561,7 +561,7 @@ bool XFillBmpPosItem::GetPresentation
OUString& rText, const IntlWrapper *
) const
{
- rText = OUString();
+ rText.clear();
return true;
}
@@ -602,7 +602,7 @@ bool XFillBmpSizeXItem::GetPresentation
OUString& rText, const IntlWrapper *
) const
{
- rText = OUString();
+ rText.clear();
return true;
}
@@ -643,7 +643,7 @@ bool XFillBmpSizeYItem::GetPresentation
OUString& rText, const IntlWrapper *
) const
{
- rText = OUString();
+ rText.clear();
return true;
}
@@ -684,7 +684,7 @@ bool XFillBmpSizeLogItem::GetPresentation
OUString& rText, const IntlWrapper *
) const
{
- rText = OUString();
+ rText.clear();
return true;
}
@@ -720,7 +720,7 @@ bool XFillBmpTileOffsetXItem::GetPresentation
OUString& rText, const IntlWrapper *
) const
{
- rText = OUString();
+ rText.clear();
return true;
}
@@ -756,7 +756,7 @@ bool XFillBmpTileOffsetYItem::GetPresentation
OUString& rText, const IntlWrapper *
) const
{
- rText = OUString();
+ rText.clear();
return true;
}
@@ -790,7 +790,7 @@ bool XFillBmpStretchItem::GetPresentation
OUString& rText, const IntlWrapper *
) const
{
- rText = OUString();
+ rText.clear();
return true;
}
@@ -826,7 +826,7 @@ bool XFillBmpPosOffsetXItem::GetPresentation
OUString& rText, const IntlWrapper *
) const
{
- rText = OUString();
+ rText.clear();
return true;
}
@@ -862,7 +862,7 @@ bool XFillBmpPosOffsetYItem::GetPresentation
OUString& rText, const IntlWrapper *
) const
{
- rText = OUString();
+ rText.clear();
return true;
}
@@ -891,7 +891,7 @@ SfxPoolItem* XFillBackgroundItem::Create(SvStream& rIn, sal_uInt16 /*nVer*/) con
bool XFillBackgroundItem::GetPresentation( SfxItemPresentation /*ePres*/, SfxMapUnit /*eCoreUnit*/,
SfxMapUnit /*ePresUnit*/, OUString& rText, const IntlWrapper*) const
{
- rText = OUString();
+ rText.clear();
return true;
}