Kaydet (Commit) f4bcba60 authored tarafından Noel Grandin's avatar Noel Grandin

loplugin:unusedenumconstants

Change-Id: I6069ca8874329e7f15903aa8ef51000c9c280d47
Reviewed-on: https://gerrit.libreoffice.org/52200Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst 2fc4af37
......@@ -58,14 +58,12 @@ enum class MessBoxStyle {
DefaultRetry = 0x0080,
DefaultYes = 0x0100,
DefaultNo = 0x0200,
AbortRetryIgnore = 0x1000,
DefaultIgnore = 0x2000,
};
}
namespace o3tl {
template<> struct typed_flags<dbaui::MessBoxStyle> : is_typed_flags<dbaui::MessBoxStyle, 0x3fff> {};
template<> struct typed_flags<dbaui::MessBoxStyle> : is_typed_flags<dbaui::MessBoxStyle, 0x0fff> {};
}
......
......@@ -33,13 +33,12 @@ enum class LoginFlags {
NoPassword = 0x0004, // hide "password"
NoSavePassword = 0x0008, // hide "save password"
NoErrorText = 0x0010, // hide message
PathReadonly = 0x0020, // "path" readonly
UsernameReadonly = 0x0040, // "name" readonly
NoAccount = 0x0080, // hide "account"
NoUseSysCreds = 0x0100, // hide "use system credentials"
};
namespace o3tl {
template<> struct typed_flags<LoginFlags> : is_typed_flags<LoginFlags, 0x01fe> {};
template<> struct typed_flags<LoginFlags> : is_typed_flags<LoginFlags, 0x01de> {};
}
......
......@@ -563,8 +563,6 @@ void SectionPropertyMap::ApplyBorderToPageStyles( const uno::Reference< containe
if ( !m_sFollowPageStyleName.isEmpty() )
xFirst = GetPageStyle( xPageStyles, xTextFactory, false );
break;
case BorderApply::ToWholeDocument: // whole document?
// todo: how to apply a border to the whole document - find all sections or access all page styles?
default:
return;
}
......
......@@ -186,8 +186,7 @@ public:
{
ToAllInSection = 0,
ToFirstPageInSection = 1,
ToAllButFirstInSection = 2,
ToWholeDocument = 3,
ToAllButFirstInSection = 2
};
enum class BorderOffsetFrom
{
......
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