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

-Werror,-Wunused-private-field

Change-Id: I6dc2aaffc2fb018ed389312cbc0d37222a6df89a
Reviewed-on: https://gerrit.libreoffice.org/42979Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarStephan Bergmann <sbergman@redhat.com>
üst 3e9f0d6f
......@@ -73,27 +73,6 @@ using namespace ::com::sun::star;
using ::com::sun::star::uno::Reference;
namespace
{
FieldUnit lcl_GetFieldUnit()
{
FieldUnit eUnit = FUNIT_CM;
const SfxPoolItem* pItem = nullptr;
SfxViewFrame* pCurrent = SfxViewFrame::Current();
SfxItemState eState = pCurrent ? pCurrent->GetBindings().GetDispatcher()->QueryState(SID_ATTR_METRIC, pItem) : SfxItemState::UNKNOWN;
if (pItem && eState >= SfxItemState::DEFAULT)
{
eUnit = (FieldUnit)static_cast<const SfxUInt16Item*>( pItem )->GetValue();
}
else
{
return SfxModule::GetCurrentFieldUnit();
}
return eUnit;
}
}
namespace sd { namespace sidebar {
enum eFillStyle
......@@ -144,7 +123,6 @@ SlideBackground::SlideBackground(
mbTitle(false),
mpPageLRMarginItem( new SvxLongLRSpaceItem( 0, 0, SID_ATTR_PAGE_LRSPACE ) ),
mpPageULMarginItem( new SvxLongULSpaceItem( 0, 0, SID_ATTR_PAGE_ULSPACE ) ),
meFieldUnit(lcl_GetFieldUnit()),
m_nPageLeftMargin(0),
m_nPageRightMargin(0),
m_nPageTopMargin(0),
......
......@@ -131,7 +131,6 @@ private:
bool mbTitle;
std::unique_ptr<SvxLongLRSpaceItem> mpPageLRMarginItem;
std::unique_ptr<SvxLongULSpaceItem> mpPageULMarginItem;
FieldUnit meFieldUnit;
long m_nPageLeftMargin;
long m_nPageRightMargin;
long m_nPageTopMargin;
......
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