summaryrefslogtreecommitdiff
path: root/svx/source/sidebar/text
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-04-14 12:44:47 +0200
committerNoel Grandin <noel@peralex.com>2015-04-15 11:47:12 +0200
commit71b809959bb8f775d83dc52628448bb8b8322b28 (patch)
treef9aa4308050eb7d55611068602c0cf0e3c1b3690 /svx/source/sidebar/text
parent135907f2061550624ee1859745d94eee01849070 (diff)
remove unnecessary use of void in function declarations
ie. void f(void); becomes void f(); I used the following command to make the changes: git grep -lP '\(\s*void\s*\)' -- *.cxx \ | xargs perl -pi -w -e 's/(\w+)\s*\(\s*void\s*\)/$1\(\)/g;' and ran it for both .cxx and .hxx files. Change-Id: I314a1b56e9c14d10726e32841736b0ad5eef8ddd
Diffstat (limited to 'svx/source/sidebar/text')
-rw-r--r--svx/source/sidebar/text/TextCharacterSpacingPopup.cxx4
-rw-r--r--svx/source/sidebar/text/TextCharacterSpacingPopup.hxx4
-rw-r--r--svx/source/sidebar/text/TextPropertyPanel.cxx8
-rw-r--r--svx/source/sidebar/text/TextPropertyPanel.hxx8
-rw-r--r--svx/source/sidebar/text/TextUnderlinePopup.cxx2
-rw-r--r--svx/source/sidebar/text/TextUnderlinePopup.hxx2
6 files changed, 14 insertions, 14 deletions
diff --git a/svx/source/sidebar/text/TextCharacterSpacingPopup.cxx b/svx/source/sidebar/text/TextCharacterSpacingPopup.cxx
index 57ea21ad0c52..1137cdb41aaa 100644
--- a/svx/source/sidebar/text/TextCharacterSpacingPopup.cxx
+++ b/svx/source/sidebar/text/TextCharacterSpacingPopup.cxx
@@ -34,7 +34,7 @@ TextCharacterSpacingPopup::TextCharacterSpacingPopup (
SetPopupModeEndHandler(::boost::bind(&TextCharacterSpacingPopup::PopupModeEndCallback, this));
}
-TextCharacterSpacingPopup::~TextCharacterSpacingPopup (void)
+TextCharacterSpacingPopup::~TextCharacterSpacingPopup()
{
}
@@ -47,7 +47,7 @@ void TextCharacterSpacingPopup::Rearrange (bool bLBAvailable,bool bAvailable, lo
pControl->Rearrange(bLBAvailable,bAvailable,nKerning);
}
-void TextCharacterSpacingPopup::PopupModeEndCallback (void)
+void TextCharacterSpacingPopup::PopupModeEndCallback()
{
ProvideContainerAndControl();
TextCharacterSpacingControl* pControl = dynamic_cast<TextCharacterSpacingControl*>(mxControl.get());
diff --git a/svx/source/sidebar/text/TextCharacterSpacingPopup.hxx b/svx/source/sidebar/text/TextCharacterSpacingPopup.hxx
index 17ad29cfd09f..9a55c0faa8d4 100644
--- a/svx/source/sidebar/text/TextCharacterSpacingPopup.hxx
+++ b/svx/source/sidebar/text/TextCharacterSpacingPopup.hxx
@@ -32,11 +32,11 @@ public :
TextCharacterSpacingPopup (
vcl::Window* pParent,
const ::boost::function<PopupControl*(PopupContainer*)>& rControlCreator);
- virtual ~TextCharacterSpacingPopup (void);
+ virtual ~TextCharacterSpacingPopup();
void Rearrange (bool bLBAvailable,bool bAvailable, long nKerning);
private:
- void PopupModeEndCallback (void);
+ void PopupModeEndCallback();
};
} } // end of namespace svx::sidebar
diff --git a/svx/source/sidebar/text/TextPropertyPanel.cxx b/svx/source/sidebar/text/TextPropertyPanel.cxx
index 5744f0a1449c..b069099feb56 100644
--- a/svx/source/sidebar/text/TextPropertyPanel.cxx
+++ b/svx/source/sidebar/text/TextPropertyPanel.cxx
@@ -114,7 +114,7 @@ TextPropertyPanel::TextPropertyPanel ( vcl::Window* pParent, const css::uno::Ref
mlKerning = 0;
}
-TextPropertyPanel::~TextPropertyPanel (void)
+TextPropertyPanel::~TextPropertyPanel()
{
}
@@ -168,12 +168,12 @@ void TextPropertyPanel::DataChanged (const DataChangedEvent& /*rEvent*/)
SetupToolboxItems();
}
-void TextPropertyPanel::EndSpacingPopupMode (void)
+void TextPropertyPanel::EndSpacingPopupMode()
{
maCharSpacePopup.Hide();
}
-void TextPropertyPanel::EndUnderlinePopupMode (void)
+void TextPropertyPanel::EndUnderlinePopupMode()
{
maUnderlinePopup.Hide();
}
@@ -194,7 +194,7 @@ void TextPropertyPanel::InitToolBoxSpacing()
mpToolBoxSpacing->SetSelectHdl( aLink );
}
-void TextPropertyPanel::SetupToolboxItems (void)
+void TextPropertyPanel::SetupToolboxItems()
{
maUnderlineControl.SetupToolBoxItem(*mpToolBoxFont, mpToolBoxFont->GetItemId(UNO_UNDERLINE));
maSpacingControl.SetupToolBoxItem(*mpToolBoxSpacing, mpToolBoxSpacing->GetItemId(UNO_SPACING));
diff --git a/svx/source/sidebar/text/TextPropertyPanel.hxx b/svx/source/sidebar/text/TextPropertyPanel.hxx
index f0734dab09a7..7d7a229ddcfc 100644
--- a/svx/source/sidebar/text/TextPropertyPanel.hxx
+++ b/svx/source/sidebar/text/TextPropertyPanel.hxx
@@ -56,8 +56,8 @@ public:
::sfx2::sidebar::ControllerItem& GetSpaceController() { return maSpacingControl;}
long GetSelFontSize();
- void EndSpacingPopupMode (void);
- void EndUnderlinePopupMode (void);
+ void EndSpacingPopupMode();
+ void EndUnderlinePopupMode();
Color& GetUnderlineColor() { return meUnderlineColor;}
@@ -102,7 +102,7 @@ private:
const css::uno::Reference<css::frame::XFrame>& rxFrame,
SfxBindings* pBindings,
const ::sfx2::sidebar::EnumContext& rContext);
- virtual ~TextPropertyPanel (void);
+ virtual ~TextPropertyPanel();
PopupControl* CreateCharacterSpacingControl (PopupContainer* pParent);
@@ -110,7 +110,7 @@ private:
DECL_LINK(SpacingClickHdl, ToolBox*);
DECL_LINK(UnderlineClickHdl, ToolBox* );
- void SetupToolboxItems (void);
+ void SetupToolboxItems();
void InitToolBoxFont();
void InitToolBoxSpacing();
};
diff --git a/svx/source/sidebar/text/TextUnderlinePopup.cxx b/svx/source/sidebar/text/TextUnderlinePopup.cxx
index 0aab2b4e58a9..f9ce1bc4e674 100644
--- a/svx/source/sidebar/text/TextUnderlinePopup.cxx
+++ b/svx/source/sidebar/text/TextUnderlinePopup.cxx
@@ -32,7 +32,7 @@ TextUnderlinePopup::TextUnderlinePopup (
{
}
-TextUnderlinePopup::~TextUnderlinePopup (void)
+TextUnderlinePopup::~TextUnderlinePopup()
{
}
diff --git a/svx/source/sidebar/text/TextUnderlinePopup.hxx b/svx/source/sidebar/text/TextUnderlinePopup.hxx
index ce4caa0b28f9..0643d927abb0 100644
--- a/svx/source/sidebar/text/TextUnderlinePopup.hxx
+++ b/svx/source/sidebar/text/TextUnderlinePopup.hxx
@@ -32,7 +32,7 @@ public :
TextUnderlinePopup (
vcl::Window* pParent,
const ::boost::function<PopupControl*(PopupContainer*)>& rControlCreator);
- virtual ~TextUnderlinePopup (void);
+ virtual ~TextUnderlinePopup();
void Rearrange (FontUnderline eLine);
};