remove unused LoginFlags values
Change-Id: I378bd70afea58ef64186c0aeb8f9da51f155494d Reviewed-on: https://gerrit.libreoffice.org/63911 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
@@ -1500,10 +1500,6 @@ tools/source/generic/poly.cxx:1122
|
||||
enum (anonymous at /home/noel/libo2/tools/source/generic/poly.cxx:1122:5) maxRecursionDepth
|
||||
ucbhelper/source/client/proxydecider.cxx:119
|
||||
enum ucbhelper::proxydecider_impl::InternetProxyDecider_Impl::ProxyType Automatic
|
||||
uui/source/logindlg.hxx:29
|
||||
enum LoginFlags NoUsername
|
||||
uui/source/logindlg.hxx:30
|
||||
enum LoginFlags NoPassword
|
||||
vcl/inc/fontsubset.hxx:41
|
||||
enum FontType ANY_TYPE1
|
||||
vcl/inc/salptype.hxx:45
|
||||
|
@@ -45,22 +45,11 @@ void LoginDialog::SetPassword( const OUString& rNew )
|
||||
|
||||
void LoginDialog::HideControls_Impl( LoginFlags nFlags )
|
||||
{
|
||||
if ( nFlags & LoginFlags::NoUsername )
|
||||
{
|
||||
m_xNameFT->hide();
|
||||
m_xNameED->hide();
|
||||
}
|
||||
else if ( nFlags & LoginFlags::UsernameReadonly )
|
||||
if ( nFlags & LoginFlags::UsernameReadonly )
|
||||
{
|
||||
m_xNameED->set_sensitive( false );
|
||||
}
|
||||
|
||||
if ( nFlags & LoginFlags::NoPassword )
|
||||
{
|
||||
m_xPasswordFT->hide();
|
||||
m_xPasswordED->hide();
|
||||
}
|
||||
|
||||
if ( nFlags & LoginFlags::NoSavePassword )
|
||||
m_xSavePasswdBtn->hide();
|
||||
|
||||
|
@@ -26,8 +26,6 @@
|
||||
|
||||
enum class LoginFlags {
|
||||
NONE = 0x0000,
|
||||
NoUsername = 0x0002, // hide "name"
|
||||
NoPassword = 0x0004, // hide "password"
|
||||
NoSavePassword = 0x0008, // hide "save password"
|
||||
NoErrorText = 0x0010, // hide message
|
||||
UsernameReadonly = 0x0040, // "name" readonly
|
||||
@@ -35,7 +33,7 @@ enum class LoginFlags {
|
||||
NoUseSysCreds = 0x0100, // hide "use system credentials"
|
||||
};
|
||||
namespace o3tl {
|
||||
template<> struct typed_flags<LoginFlags> : is_typed_flags<LoginFlags, 0x01de> {};
|
||||
template<> struct typed_flags<LoginFlags> : is_typed_flags<LoginFlags, 0x01d8> {};
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user