summaryrefslogtreecommitdiff
path: root/accessibility
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 /accessibility
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 'accessibility')
-rw-r--r--accessibility/source/extended/accessibletabbarpage.cxx2
-rw-r--r--accessibility/source/standard/accessiblemenuitemcomponent.cxx4
-rw-r--r--accessibility/source/standard/vclxaccessiblelistitem.cxx2
-rw-r--r--accessibility/source/standard/vclxaccessiblestatusbaritem.cxx4
-rw-r--r--accessibility/source/standard/vclxaccessibletabpage.cxx2
-rw-r--r--accessibility/source/standard/vclxaccessibletextcomponent.cxx2
6 files changed, 8 insertions, 8 deletions
diff --git a/accessibility/source/extended/accessibletabbarpage.cxx b/accessibility/source/extended/accessibletabbarpage.cxx
index 9723d570efc2..c3d6533261ee 100644
--- a/accessibility/source/extended/accessibletabbarpage.cxx
+++ b/accessibility/source/extended/accessibletabbarpage.cxx
@@ -242,7 +242,7 @@ namespace accessibility
void AccessibleTabBarPage::disposing()
{
AccessibleTabBarBase::disposing();
- m_sPageText = OUString();
+ m_sPageText.clear();
}
diff --git a/accessibility/source/standard/accessiblemenuitemcomponent.cxx b/accessibility/source/standard/accessiblemenuitemcomponent.cxx
index 60c7b6b77e96..73674c7195f9 100644
--- a/accessibility/source/standard/accessiblemenuitemcomponent.cxx
+++ b/accessibility/source/standard/accessiblemenuitemcomponent.cxx
@@ -299,8 +299,8 @@ void SAL_CALL OAccessibleMenuItemComponent::disposing()
OAccessibleMenuBaseComponent::disposing();
m_pParent = NULL;
- m_sAccessibleName = OUString();
- m_sItemText = OUString();
+ m_sAccessibleName.clear();
+ m_sItemText.clear();
}
diff --git a/accessibility/source/standard/vclxaccessiblelistitem.cxx b/accessibility/source/standard/vclxaccessiblelistitem.cxx
index 76044a2ffd05..96f8a249fc4e 100644
--- a/accessibility/source/standard/vclxaccessiblelistitem.cxx
+++ b/accessibility/source/standard/vclxaccessiblelistitem.cxx
@@ -183,7 +183,7 @@ void SAL_CALL VCLXAccessibleListItem::disposing()
::osl::MutexGuard aGuard( m_aMutex );
VCLXAccessibleListItem_BASE::disposing();
- m_sEntryText = OUString();
+ m_sEntryText.clear();
m_pListBoxHelper = NULL;
m_xParent = NULL;
m_xParentContext = NULL;
diff --git a/accessibility/source/standard/vclxaccessiblestatusbaritem.cxx b/accessibility/source/standard/vclxaccessiblestatusbaritem.cxx
index 6ed6ec6e4a58..089176fdbb66 100644
--- a/accessibility/source/standard/vclxaccessiblestatusbaritem.cxx
+++ b/accessibility/source/standard/vclxaccessiblestatusbaritem.cxx
@@ -221,8 +221,8 @@ void VCLXAccessibleStatusBarItem::disposing()
AccessibleTextHelper_BASE::disposing();
m_pStatusBar = NULL;
- m_sItemName = OUString();
- m_sItemText = OUString();
+ m_sItemName.clear();
+ m_sItemText.clear();
}
diff --git a/accessibility/source/standard/vclxaccessibletabpage.cxx b/accessibility/source/standard/vclxaccessibletabpage.cxx
index 5797ccca10d6..61a091af3958 100644
--- a/accessibility/source/standard/vclxaccessibletabpage.cxx
+++ b/accessibility/source/standard/vclxaccessibletabpage.cxx
@@ -254,7 +254,7 @@ void VCLXAccessibleTabPage::disposing()
AccessibleTextHelper_BASE::disposing();
m_pTabControl = NULL;
- m_sPageText = OUString();
+ m_sPageText.clear();
}
diff --git a/accessibility/source/standard/vclxaccessibletextcomponent.cxx b/accessibility/source/standard/vclxaccessibletextcomponent.cxx
index ba92960e4d02..111f95716049 100644
--- a/accessibility/source/standard/vclxaccessibletextcomponent.cxx
+++ b/accessibility/source/standard/vclxaccessibletextcomponent.cxx
@@ -125,7 +125,7 @@ void VCLXAccessibleTextComponent::disposing()
{
VCLXAccessibleComponent::disposing();
- m_sText = OUString();
+ m_sText.clear();
}