summaryrefslogtreecommitdiff
path: root/svx/source/accessibility
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2019-07-30 17:48:02 +0200
committerStephan Bergmann <sbergman@redhat.com>2019-07-31 12:54:10 +0200
commit06daea730e65b70f1a2c6adaeeeaa8fc2927a311 (patch)
tree004e42e16b58cc4885bbf09019127289fbb3dd9a /svx/source/accessibility
parent39642d415cd70165574f91500801d3b49c65d646 (diff)
Improved loplugin:stringconstant (now that GCC 7 supports it): svx
Change-Id: Idbdee862f96a3d9e6baaa7203528a423c017eb80 Reviewed-on: https://gerrit.libreoffice.org/76640 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'svx/source/accessibility')
-rw-r--r--svx/source/accessibility/AccessibleControlShape.cxx10
-rw-r--r--svx/source/accessibility/AccessibleGraphicShape.cxx2
-rw-r--r--svx/source/accessibility/AccessibleOLEShape.cxx2
-rw-r--r--svx/source/accessibility/AccessibleShape.cxx4
-rw-r--r--svx/source/accessibility/GraphCtlAccessibleContext.cxx4
-rw-r--r--svx/source/accessibility/charmapacc.cxx2
-rw-r--r--svx/source/accessibility/svxrectctaccessiblecontext.cxx2
7 files changed, 13 insertions, 13 deletions
diff --git a/svx/source/accessibility/AccessibleControlShape.cxx b/svx/source/accessibility/AccessibleControlShape.cxx
index 4c4c87601a3b..47f4c41aff01 100644
--- a/svx/source/accessibility/AccessibleControlShape.cxx
+++ b/svx/source/accessibility/AccessibleControlShape.cxx
@@ -67,19 +67,19 @@ namespace
{
OUString lcl_getNamePropertyName( )
{
- return OUString( "Name" );
+ return "Name";
}
OUString lcl_getDescPropertyName( )
{
- return OUString( "HelpText" );
+ return "HelpText";
}
OUString lcl_getLabelPropertyName( )
{
- return OUString( "Label" );
+ return "Label";
}
OUString lcl_getLabelControlPropertyName( )
{
- return OUString("LabelControl");
+ return "LabelControl";
}
// return the property which should be used as AccessibleName
const OUString lcl_getPreferredAccNameProperty( const Reference< XPropertySetInfo >& _rxPSI )
@@ -298,7 +298,7 @@ void SAL_CALL AccessibleControlShape::grabFocus()
OUString SAL_CALL AccessibleControlShape::getImplementationName()
{
- return OUString( "com.sun.star.comp.accessibility.AccessibleControlShape" );
+ return "com.sun.star.comp.accessibility.AccessibleControlShape";
}
OUString AccessibleControlShape::CreateAccessibleBaseName()
diff --git a/svx/source/accessibility/AccessibleGraphicShape.cxx b/svx/source/accessibility/AccessibleGraphicShape.cxx
index 2b8034ca55a2..04a7a9644ee1 100644
--- a/svx/source/accessibility/AccessibleGraphicShape.cxx
+++ b/svx/source/accessibility/AccessibleGraphicShape.cxx
@@ -97,7 +97,7 @@ void SAL_CALL
OUString SAL_CALL
AccessibleGraphicShape::getImplementationName()
{
- return OUString("AccessibleGraphicShape");
+ return "AccessibleGraphicShape";
}
diff --git a/svx/source/accessibility/AccessibleOLEShape.cxx b/svx/source/accessibility/AccessibleOLEShape.cxx
index b2e76fd70074..5f4b03995665 100644
--- a/svx/source/accessibility/AccessibleOLEShape.cxx
+++ b/svx/source/accessibility/AccessibleOLEShape.cxx
@@ -102,7 +102,7 @@ void SAL_CALL
OUString SAL_CALL
AccessibleOLEShape::getImplementationName()
{
- return OUString("AccessibleOLEShape");
+ return "AccessibleOLEShape";
}
diff --git a/svx/source/accessibility/AccessibleShape.cxx b/svx/source/accessibility/AccessibleShape.cxx
index bac37417d92a..fd6b7af7c028 100644
--- a/svx/source/accessibility/AccessibleShape.cxx
+++ b/svx/source/accessibility/AccessibleShape.cxx
@@ -315,7 +315,7 @@ OUString SAL_CALL AccessibleShape::getAccessibleDescription()
if( m_pShape && !m_pShape->GetDescription().isEmpty())
return m_pShape->GetDescription() ;
else
- return OUString(" ");
+ return " ";
}
// XAccessibleContext
@@ -877,7 +877,7 @@ uno::Any SAL_CALL AccessibleShape::getExtendedAttributes()
OUString SAL_CALL
AccessibleShape::getImplementationName()
{
- return OUString("AccessibleShape");
+ return "AccessibleShape";
}
diff --git a/svx/source/accessibility/GraphCtlAccessibleContext.cxx b/svx/source/accessibility/GraphCtlAccessibleContext.cxx
index db79abc3f03b..cd90f449c9bb 100644
--- a/svx/source/accessibility/GraphCtlAccessibleContext.cxx
+++ b/svx/source/accessibility/GraphCtlAccessibleContext.cxx
@@ -491,7 +491,7 @@ sal_Int32 SAL_CALL SvxGraphCtrlAccessibleContext::getBackground()
// XServiceInfo
OUString SAL_CALL SvxGraphCtrlAccessibleContext::getImplementationName()
{
- return OUString( "com.sun.star.comp.ui.SvxGraphCtrlAccessibleContext" );
+ return "com.sun.star.comp.ui.SvxGraphCtrlAccessibleContext";
}
sal_Bool SAL_CALL SvxGraphCtrlAccessibleContext::supportsService( const OUString& sServiceName )
@@ -519,7 +519,7 @@ Sequence<sal_Int8> SAL_CALL SvxGraphCtrlAccessibleContext::getImplementationId()
// XServiceName
OUString SvxGraphCtrlAccessibleContext::getServiceName()
{
- return OUString( "com.sun.star.accessibility.AccessibleContext" );
+ return "com.sun.star.accessibility.AccessibleContext";
}
// XAccessibleSelection
diff --git a/svx/source/accessibility/charmapacc.cxx b/svx/source/accessibility/charmapacc.cxx
index 1f89a39fb0b6..c90e60359610 100644
--- a/svx/source/accessibility/charmapacc.cxx
+++ b/svx/source/accessibility/charmapacc.cxx
@@ -524,7 +524,7 @@ sal_Bool SvxShowCharSetItemAcc::doAccessibleAction ( sal_Int32 nIndex )
OUString SvxShowCharSetItemAcc::getAccessibleActionDescription ( sal_Int32 nIndex )
{
if( nIndex == 0 )
- return OUString( "press" );
+ return "press";
throw IndexOutOfBoundsException();
}
diff --git a/svx/source/accessibility/svxrectctaccessiblecontext.cxx b/svx/source/accessibility/svxrectctaccessiblecontext.cxx
index 55e1f2410d2e..2557ae3cf05f 100644
--- a/svx/source/accessibility/svxrectctaccessiblecontext.cxx
+++ b/svx/source/accessibility/svxrectctaccessiblecontext.cxx
@@ -587,7 +587,7 @@ OUString SvxRectCtlChildAccessibleContext::getAccessibleActionDescription ( sal_
if ( nIndex < 0 || nIndex >= getAccessibleActionCount() )
throw IndexOutOfBoundsException();
- return OUString("select");
+ return "select";
}