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

loplugin:staticmethods

Change-Id: Iaf9b6afa7c2d3d8044d50e0bfac898319fff8f22
üst 338a9aba
......@@ -522,13 +522,12 @@ void ControlHelper::createUserPane()
void ControlHelper::createControls()
{
CResourceProvider aResProvider;
for (int i = 0; i < LIST_LAST; i++) {
if (m_bListVisibility[i]) {
m_bUserPaneNeeded = true;
int elementName = getControlElementName([NSPopUpButton class], i);
NSString* sLabel = aResProvider.getResString(elementName);
NSString* sLabel = CResourceProvider::getResString(elementName);
m_pListControls[i] = [NSPopUpButton new];
......@@ -554,7 +553,7 @@ void ControlHelper::createControls()
m_bUserPaneNeeded = true;
int elementName = getControlElementName([NSButton class], i);
NSString* sLabel = aResProvider.getResString(elementName);
NSString* sLabel = CResourceProvider::getResString(elementName);
NSButton *button = [NSButton new];
[button setTitle:sLabel];
......@@ -867,8 +866,7 @@ void ControlHelper::layoutControls()
void ControlHelper::createFilterControl()
{
CResourceProvider aResProvider;
NSString* sLabel = aResProvider.getResString(CommonFilePickerElementIds::LISTBOX_FILTER_LABEL);
NSString* sLabel = CResourceProvider::getResString(CommonFilePickerElementIds::LISTBOX_FILTER_LABEL);
m_pFilterControl = [NSPopUpButton new];
......
......@@ -38,10 +38,10 @@
#define FILE_PICKER_FILE_TYPE 504
#define FILE_PICKER_OVERWRITE 505
class CResourceProvider
{
public:
NSString* getResString( sal_Int32 aId );
namespace CResourceProvider {
NSString* getResString( sal_Int32 aId );
};
#endif
......
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