Kaydet (Commit) de7b7e68 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:stringconstant: elide explicit ctor usage (manually due to macros)

Change-Id: Ic8c87b17d0c2c1b18b01a44ababee0daccf1fb28
üst c5376ef6
...@@ -104,17 +104,17 @@ namespace oox { ...@@ -104,17 +104,17 @@ namespace oox {
namespace drawingml { namespace drawingml {
#define GETA(propName) \ #define GETA(propName) \
GetProperty( rXPropSet, OUString( #propName ) ) GetProperty( rXPropSet, #propName )
#define GETAD(propName) \ #define GETAD(propName) \
( GetPropertyAndState( rXPropSet, rXPropState, OUString( #propName ), eState ) && eState == beans::PropertyState_DIRECT_VALUE ) ( GetPropertyAndState( rXPropSet, rXPropState, #propName, eState ) && eState == beans::PropertyState_DIRECT_VALUE )
#define GET(variable, propName) \ #define GET(variable, propName) \
if ( GETA(propName) ) \ if ( GETA(propName) ) \
mAny >>= variable; mAny >>= variable;
#define CGETAD(propName) \ #define CGETAD(propName) \
(( bCheckDirect && GetPropertyAndState( rXPropSet, rXPropState, OUString( #propName ), eState ) && eState == beans::PropertyState_DIRECT_VALUE )||GetProperty( rXPropSet, OUString( #propName ) )) (( bCheckDirect && GetPropertyAndState( rXPropSet, rXPropState, #propName, eState ) && eState == beans::PropertyState_DIRECT_VALUE )||GetProperty( rXPropSet, #propName ))
// not thread safe // not thread safe
int DrawingML::mnImageCounter = 1; int DrawingML::mnImageCounter = 1;
......
...@@ -123,10 +123,10 @@ bool URLTransformer::isExternalURL(const OUString& /*rURL*/) const ...@@ -123,10 +123,10 @@ bool URLTransformer::isExternalURL(const OUString& /*rURL*/) const
} }
#define GETA(propName) \ #define GETA(propName) \
GetProperty( rXPropSet, OUString(#propName)) GetProperty( rXPropSet, #propName)
#define GETAD(propName) \ #define GETAD(propName) \
( GetPropertyAndState( rXPropSet, rXPropState, OUString(#propName), eState ) && eState == beans::PropertyState_DIRECT_VALUE ) ( GetPropertyAndState( rXPropSet, rXPropState, #propName, eState ) && eState == beans::PropertyState_DIRECT_VALUE )
#define GET(variable, propName) \ #define GET(variable, propName) \
if ( GETA(propName) ) \ if ( GETA(propName) ) \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment