[Libreoffice-commits] core.git: sfx2/source

Muhammet Kara muhammet.kara at pardus.org.tr
Sat Jun 18 09:24:39 UTC 2016


 sfx2/source/sidebar/DeckTitleBar.cxx |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

New commits:
commit 9db384d9947c8d0bb566160c50b34bc8f6a2cc72
Author: Muhammet Kara <muhammet.kara at pardus.org.tr>
Date:   Fri Jun 17 12:09:00 2016 +0300

    Get rid of unnecessary OUString creation in DeckTitleBar
    
    See also: sfx2/source/sidebar/PanelTitleBar.cxx#162
    
    Change-Id: I22eca7eeabb6ba7dd64b7840a3eac3ce9a455a9b
    Reviewed-on: https://gerrit.libreoffice.org/26412
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Noel Grandin <noelgrandin at gmail.com>

diff --git a/sfx2/source/sidebar/DeckTitleBar.cxx b/sfx2/source/sidebar/DeckTitleBar.cxx
index 8c3558d..31214fb 100644
--- a/sfx2/source/sidebar/DeckTitleBar.cxx
+++ b/sfx2/source/sidebar/DeckTitleBar.cxx
@@ -100,9 +100,8 @@ void DeckTitleBar::HandleToolBoxItemClick (const sal_uInt16 nItemIndex)
 
 css::uno::Reference<css::accessibility::XAccessible> DeckTitleBar::CreateAccessible()
 {
-    const OUString sAccessibleName(msTitle);
-    SetAccessibleName(sAccessibleName);
-    SetAccessibleDescription(sAccessibleName);
+    SetAccessibleName(msTitle);
+    SetAccessibleDescription(msTitle);
     return TitleBar::CreateAccessible();
 }
 


More information about the Libreoffice-commits mailing list