diff options
author | Noel Grandin <noel@peralex.com> | 2015-11-23 13:47:22 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-11-24 08:05:01 +0200 |
commit | c43ee8d54ad44e01d0bba404e719d2b03a73959e (patch) | |
tree | 284284eb11fa0986845e63867bcf0e0a89e6b58f /sw/source/uibase/sidebar/ThemePanel.cxx | |
parent | aefcb307c246275fa9001996bd815c73b4ac79b3 (diff) |
loplugin:unusedfields in sw/
Change-Id: I3e146c4287df70bbf58443caecfa62453c116ecb
Diffstat (limited to 'sw/source/uibase/sidebar/ThemePanel.cxx')
-rw-r--r-- | sw/source/uibase/sidebar/ThemePanel.cxx | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/sw/source/uibase/sidebar/ThemePanel.cxx b/sw/source/uibase/sidebar/ThemePanel.cxx index 90694ef79a0c..81bf6a486ae2 100644 --- a/sw/source/uibase/sidebar/ThemePanel.cxx +++ b/sw/source/uibase/sidebar/ThemePanel.cxx @@ -108,13 +108,11 @@ public: class StyleSet { - OUString maName; std::vector<StyleRedefinition> maStyles; public: - explicit StyleSet(const OUString& aName) - : maName(aName) - , maStyles() + explicit StyleSet() + : maStyles() {} void add(StyleRedefinition aRedefinition) @@ -137,7 +135,7 @@ public: StyleSet setupThemes() { - StyleSet aSet("Default"); + StyleSet aSet; { StyleRedefinition aRedefinition("Heading 1"); @@ -428,24 +426,19 @@ BitmapEx GenerateColorPreview(const svx::ColorSet& rColorSet) namespace sw { namespace sidebar { VclPtr<vcl::Window> ThemePanel::Create (vcl::Window* pParent, - const css::uno::Reference<css::frame::XFrame>& rxFrame, - SfxBindings* pBindings) + const css::uno::Reference<css::frame::XFrame>& rxFrame) { if (pParent == nullptr) throw css::lang::IllegalArgumentException("no parent Window given to PagePropertyPanel::Create", nullptr, 0); if (!rxFrame.is()) throw css::lang::IllegalArgumentException("no XFrame given to PagePropertyPanel::Create", nullptr, 1); - if (pBindings == nullptr) - throw css::lang::IllegalArgumentException("no SfxBindings given to PagePropertyPanel::Create", nullptr, 2); - return VclPtr<ThemePanel>::Create(pParent, rxFrame, pBindings); + return VclPtr<ThemePanel>::Create(pParent, rxFrame); } ThemePanel::ThemePanel(vcl::Window* pParent, - const css::uno::Reference<css::frame::XFrame>& rxFrame, - SfxBindings* pBindings) + const css::uno::Reference<css::frame::XFrame>& rxFrame) : PanelLayout(pParent, "ThemePanel", "modules/swriter/ui/sidebartheme.ui", rxFrame) - , mpBindings(pBindings) , maColorSets() { get(mpListBoxFonts, "listbox_fonts"); |