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

loplugin:staticmethods

Change-Id: I13fe0b5b77d8d43639afa035f2db6e904cd998be
üst 5665259f
...@@ -166,14 +166,14 @@ public: ...@@ -166,14 +166,14 @@ public:
assert( SAL_N_ELEMENTS(SV_PRINT_NATIVE_STRINGS) >= 5 && "resources not found" ); assert( SAL_N_ELEMENTS(SV_PRINT_NATIVE_STRINGS) >= 5 && "resources not found" );
} }
rtl::OUString getMoreString() static rtl::OUString getMoreString()
{ {
return SAL_N_ELEMENTS(SV_PRINT_NATIVE_STRINGS) >= 4 return SAL_N_ELEMENTS(SV_PRINT_NATIVE_STRINGS) >= 4
? VclResId(SV_PRINT_NATIVE_STRINGS[3]) ? VclResId(SV_PRINT_NATIVE_STRINGS[3])
: OUString("More"); : OUString("More");
} }
rtl::OUString getPrintSelectionString() static rtl::OUString getPrintSelectionString()
{ {
return SAL_N_ELEMENTS(SV_PRINT_NATIVE_STRINGS) >= 5 return SAL_N_ELEMENTS(SV_PRINT_NATIVE_STRINGS) >= 5
? VclResId(SV_PRINT_NATIVE_STRINGS[4]) ? VclResId(SV_PRINT_NATIVE_STRINGS[4])
...@@ -1127,7 +1127,7 @@ static void addEdit( NSView* pCurParent, long& rCurX, long& rCurY, long nAttachO ...@@ -1127,7 +1127,7 @@ static void addEdit( NSView* pCurParent, long& rCurX, long& rCurY, long nAttachO
{ {
rtl::OUString aGroupTitle( aText ); rtl::OUString aGroupTitle( aText );
if( aCtrlType == "Subgroup" ) if( aCtrlType == "Subgroup" )
aGroupTitle = pControllerProperties->getMoreString(); aGroupTitle = ControllerProperties::getMoreString();
// set size of current parent // set size of current parent
if( pCurParent ) if( pCurParent )
...@@ -1153,7 +1153,7 @@ static void addEdit( NSView* pCurParent, long& rCurX, long& rCurY, long nAttachO ...@@ -1153,7 +1153,7 @@ static void addEdit( NSView* pCurParent, long& rCurX, long& rCurY, long nAttachO
if( bAddSelectionCheckBox ) if( bAddSelectionCheckBox )
{ {
addBool( pCurParent, nCurX, nCurY, 0, addBool( pCurParent, nCurX, nCurY, 0,
pControllerProperties->getPrintSelectionString(), bSelectionBoxEnabled, ControllerProperties::getPrintSelectionString(), bSelectionBoxEnabled,
"PrintContent", bSelectionBoxChecked, "PrintContent", bSelectionBoxChecked,
aRightColumn, pControllerProperties, pCtrlTarget ); aRightColumn, pControllerProperties, pCtrlTarget );
bAddSelectionCheckBox = false; bAddSelectionCheckBox = false;
......
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