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

loplugin:staticmethods

Change-Id: Ic8e00ab8961811044c26eb237f283617ddeb5cb6
üst 2337adc2
......@@ -67,6 +67,17 @@
using namespace ::com::sun::star;
namespace {
Image BuildBitmap(bool bProtect, bool bHidden)
{
if (bProtect)
return Image(BitmapEx(SW_RES(bHidden ? RID_BMP_PROT_HIDE : RID_BMP_PROT_NO_HIDE)));
return Image(BitmapEx(SW_RES(bHidden ? RID_BMP_HIDE : RID_BMP_NO_HIDE)));
}
}
static void lcl_ReadSections( SfxMedium& rMedium, ComboBox& rBox );
static void lcl_FillList( SwWrtShell& rSh, ComboBox& rSubRegions, ComboBox* pAvailNames, const SwSectionFormat* pNewFormat )
......@@ -1366,13 +1377,6 @@ IMPL_LINK( SwEditRegionDlg, SubRegionEventHdl, VclWindowEvent&, rEvent, void )
}
}
Image SwEditRegionDlg::BuildBitmap(bool bProtect, bool bHidden)
{
if (bProtect)
return Image(BitmapEx(SW_RES(bHidden ? RID_BMP_PROT_HIDE : RID_BMP_PROT_NO_HIDE)));
return Image(BitmapEx(SW_RES(bHidden ? RID_BMP_HIDE : RID_BMP_NO_HIDE)));
}
// helper function - read region names from medium
static void lcl_ReadSections( SfxMedium& rMedium, ComboBox& rBox )
{
......
......@@ -98,8 +98,6 @@ class SwEditRegionDlg : public SfxModalDialog
bool bDontCheckPasswd :1;
bool bWeb :1;
Image BuildBitmap(bool bProtect, bool bHidden);
void RecurseList( const SwSectionFormat* pFormat, SvTreeListEntry* pEntry);
size_t FindArrPos(const SwSectionFormat* pFormat);
......
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