Improved loplugin:stringconstant (now that GCC 7 supports it): starmath

Change-Id: I12c7978be638fb875be1b183c70a8eb08bedf778
Reviewed-on: https://gerrit.libreoffice.org/76645
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
This commit is contained in:
Stephan Bergmann
2019-07-30 17:48:38 +02:00
parent d15e0ff4fd
commit 2372d1a8b5
9 changed files with 13 additions and 13 deletions

View File

@@ -107,7 +107,7 @@ void AccessibleSmElement::disposing()
OUString AccessibleSmElement::getImplementationName() OUString AccessibleSmElement::getImplementationName()
{ {
return OUString("com.sun.star.comp.toolkit.AccessibleSmElement"); return "com.sun.star.comp.toolkit.AccessibleSmElement";
} }
sal_Bool AccessibleSmElement::supportsService(const OUString& rServiceName) sal_Bool AccessibleSmElement::supportsService(const OUString& rServiceName)
@@ -274,7 +274,7 @@ OUString AccessibleSmElement::getAccessibleActionDescription(sal_Int32 nIndex)
testAction(nIndex); testAction(nIndex);
return OUString("press"); return "press";
} }
uno::Reference<XAccessibleKeyBinding> uno::Reference<XAccessibleKeyBinding>

View File

@@ -156,7 +156,7 @@ sal_Int32 AccessibleSmElementsControl::getBackground()
// XServiceInfo // XServiceInfo
OUString AccessibleSmElementsControl::getImplementationName() OUString AccessibleSmElementsControl::getImplementationName()
{ {
return OUString("com.sun.star.comp.toolkit.AccessibleSmElementsControl"); return "com.sun.star.comp.toolkit.AccessibleSmElementsControl";
} }
sal_Bool AccessibleSmElementsControl::supportsService(const OUString& rServiceName) sal_Bool AccessibleSmElementsControl::supportsService(const OUString& rServiceName)

View File

@@ -720,7 +720,7 @@ sal_Bool SAL_CALL SmGraphicAccessible::copyText(
OUString SAL_CALL SmGraphicAccessible::getImplementationName() OUString SAL_CALL SmGraphicAccessible::getImplementationName()
{ {
return OUString("SmGraphicAccessible"); return "SmGraphicAccessible";
} }
sal_Bool SAL_CALL SmGraphicAccessible::supportsService( sal_Bool SAL_CALL SmGraphicAccessible::supportsService(
@@ -1763,7 +1763,7 @@ void SAL_CALL SmEditAccessible::removeAccessibleEventListener( const uno::Refere
OUString SAL_CALL SmEditAccessible::getImplementationName() OUString SAL_CALL SmEditAccessible::getImplementationName()
{ {
return OUString("SmEditAccessible"); return "SmEditAccessible";
} }
sal_Bool SAL_CALL SmEditAccessible::supportsService( sal_Bool SAL_CALL SmEditAccessible::supportsService(

View File

@@ -47,7 +47,7 @@ void SmFormatAction::Repeat(SfxRepeatTarget& rDocSh)
OUString SmFormatAction::GetComment() const OUString SmFormatAction::GetComment() const
{ {
return OUString(RID_UNDOFORMATNAME); return RID_UNDOFORMATNAME;
} }
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

View File

@@ -80,7 +80,7 @@ OUString SAL_CALL SmFilterDetect::detect( Sequence< PropertyValue >& lDescriptor
{ {
sal_uInt8 nVersion; sal_uInt8 nVersion;
if ( GetMathTypeVersion( aStorage.get(), nVersion ) && nVersion <=3 ) if ( GetMathTypeVersion( aStorage.get(), nVersion ) && nVersion <=3 )
return OUString("math_MathType_3x"); return "math_MathType_3x";
} }
} }
} }
@@ -114,7 +114,7 @@ OUString SAL_CALL SmFilterDetect::detect( Sequence< PropertyValue >& lDescriptor
0 == strncmp( "<math:math> ", aBuffer, 12)); 0 == strncmp( "<math:math> ", aBuffer, 12));
if ( bIsMathType ) if ( bIsMathType )
return OUString("math_MathML_XML_Math"); return "math_MathML_XML_Math";
} }
} }
@@ -124,7 +124,7 @@ OUString SAL_CALL SmFilterDetect::detect( Sequence< PropertyValue >& lDescriptor
/* XServiceInfo */ /* XServiceInfo */
OUString SAL_CALL SmFilterDetect::getImplementationName() OUString SAL_CALL SmFilterDetect::getImplementationName()
{ {
return OUString("com.sun.star.comp.math.FormatDetector"); return "com.sun.star.comp.math.FormatDetector";
} }
/* XServiceInfo */ /* XServiceInfo */

View File

@@ -104,7 +104,7 @@ std::unique_ptr<UIObject> ElementSelectorUIObject::create(vcl::Window* pWindow)
OUString ElementSelectorUIObject::get_name() const OUString ElementSelectorUIObject::get_name() const
{ {
return OUString("SmElementSelector"); return "SmElementSelector";
} }
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

View File

@@ -28,7 +28,7 @@ using namespace ::com::sun::star;
OUString SmDocument_getImplementationName() throw() OUString SmDocument_getImplementationName() throw()
{ {
return OUString( "com.sun.star.comp.Math.FormulaDocument" ); return "com.sun.star.comp.Math.FormulaDocument";
} }
uno::Sequence< OUString > SmDocument_getSupportedServiceNames() throw() uno::Sequence< OUString > SmDocument_getSupportedServiceNames() throw()

View File

@@ -101,7 +101,7 @@ void MathTypeFilter::setTargetDocument(const uno::Reference< lang::XComponent >&
OUString MathTypeFilter::getImplementationName() OUString MathTypeFilter::getImplementationName()
{ {
return OUString("com.sun.star.comp.Math.MathTypeFilter"); return "com.sun.star.comp.Math.MathTypeFilter";
} }
sal_Bool MathTypeFilter::supportsService(const OUString& rServiceName) sal_Bool MathTypeFilter::supportsService(const OUString& rServiceName)

View File

@@ -387,7 +387,7 @@ static sal_Int16 lcl_AnyToINT16(const uno::Any& rAny)
OUString SmModel::getImplementationName() OUString SmModel::getImplementationName()
{ {
return OUString("com.sun.star.comp.Math.FormulaDocument"); return "com.sun.star.comp.Math.FormulaDocument";
} }
sal_Bool SmModel::supportsService(const OUString& rServiceName) sal_Bool SmModel::supportsService(const OUString& rServiceName)