diff options
author | Philipp Hofer <philipp.hofer@protonmail.com> | 2020-11-12 13:12:24 +0100 |
---|---|---|
committer | Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> | 2020-11-19 01:36:55 +0100 |
commit | 6ceb1d0f2e23749fe03fab08ec338ba4d7782173 (patch) | |
tree | 44e69c2fdf12594169ca3a052224368faa967185 /sc/source/ui/miscdlgs/retypepassdlg.cxx | |
parent | 695280feb90729fde1a7ecf1c409ae16f8281a46 (diff) |
tdf#123936 Formatting files in module sc with clang-format
Change-Id: I66cafda863e3e1e4559a57289c09925d68b0719c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105701
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Tested-by: Jenkins
Diffstat (limited to 'sc/source/ui/miscdlgs/retypepassdlg.cxx')
-rw-r--r-- | sc/source/ui/miscdlgs/retypepassdlg.cxx | 52 |
1 files changed, 15 insertions, 37 deletions
diff --git a/sc/source/ui/miscdlgs/retypepassdlg.cxx b/sc/source/ui/miscdlgs/retypepassdlg.cxx index 3a71dc27e16a..9af22432648d 100644 --- a/sc/source/ui/miscdlgs/retypepassdlg.cxx +++ b/sc/source/ui/miscdlgs/retypepassdlg.cxx @@ -42,14 +42,9 @@ ScRetypePassDlg::ScRetypePassDlg(weld::Window* pParent) Init(); } -ScRetypePassDlg::~ScRetypePassDlg() -{ -} +ScRetypePassDlg::~ScRetypePassDlg() {} -void ScRetypePassDlg::DeleteSheets() -{ - maSheets.clear(); -} +void ScRetypePassDlg::DeleteSheets() { maSheets.clear(); } short ScRetypePassDlg::run() { @@ -93,10 +88,7 @@ void ScRetypePassDlg::SetDataFromDocument(const ScDocument& rDoc) } } -void ScRetypePassDlg::SetDesiredHash(ScPasswordHash eHash) -{ - meDesiredHash = eHash; -} +void ScRetypePassDlg::SetDesiredHash(ScPasswordHash eHash) { meDesiredHash = eHash; } void ScRetypePassDlg::WriteNewDataToDocument(ScDocument& rDoc) const { @@ -118,10 +110,10 @@ void ScRetypePassDlg::WriteNewDataToDocument(ScDocument& rDoc) const void ScRetypePassDlg::Init() { - Link<weld::Button&,void> aLink = LINK( this, ScRetypePassDlg, OKHdl ); + Link<weld::Button&, void> aLink = LINK(this, ScRetypePassDlg, OKHdl); mxBtnOk->connect_clicked(aLink); - aLink = LINK( this, ScRetypePassDlg, RetypeBtnHdl ); + aLink = LINK(this, ScRetypePassDlg, RetypeBtnHdl); mxBtnRetypeDoc->connect_clicked(aLink); mxTextDocStatus->set_label(maTextNotProtected); @@ -135,7 +127,7 @@ void ScRetypePassDlg::PopulateDialog() // Sheet protection next. for (size_t i = 0; i < maTableItems.size(); ++i) - SetTableData(i, static_cast< SCTAB >( i )); + SetTableData(i, static_cast<SCTAB>(i)); } void ScRetypePassDlg::SetDocData() @@ -222,16 +214,12 @@ void ScRetypePassDlg::CheckHashStatus() mxBtnOk->set_sensitive(true); return; - } - while (false); + } while (false); mxBtnOk->set_sensitive(false); } -IMPL_LINK_NOARG(ScRetypePassDlg, OKHdl, weld::Button&, void) -{ - m_xDialog->response(RET_OK); -} +IMPL_LINK_NOARG(ScRetypePassDlg, OKHdl, weld::Button&, void) { m_xDialog->response(RET_OK); } IMPL_LINK(ScRetypePassDlg, RetypeBtnHdl, weld::Button&, rBtn, void) { @@ -277,7 +265,8 @@ IMPL_LINK(ScRetypePassDlg, RetypeBtnHdl, weld::Button&, rBtn, void) } ScRetypePassInputDlg::ScRetypePassInputDlg(weld::Window* pParent, ScPassHashProtectable* pProtected) - : GenericDialogController(pParent, "modules/scalc/ui/retypepassworddialog.ui", "RetypePasswordDialog") + : GenericDialogController(pParent, "modules/scalc/ui/retypepassworddialog.ui", + "RetypePasswordDialog") , m_pProtected(pProtected) , m_xBtnOk(m_xBuilder->weld_button("ok")) , m_xBtnRetypePassword(m_xBuilder->weld_radio_button("retypepassword")) @@ -290,19 +279,11 @@ ScRetypePassInputDlg::ScRetypePassInputDlg(weld::Window* pParent, ScPassHashProt Init(); } -ScRetypePassInputDlg::~ScRetypePassInputDlg() -{ -} +ScRetypePassInputDlg::~ScRetypePassInputDlg() {} -bool ScRetypePassInputDlg::IsRemovePassword() const -{ - return m_xBtnRemovePassword->get_active(); -} +bool ScRetypePassInputDlg::IsRemovePassword() const { return m_xBtnRemovePassword->get_active(); } -OUString ScRetypePassInputDlg::GetNewPassword() const -{ - return m_xPassword1Edit->get_text(); -} +OUString ScRetypePassInputDlg::GetNewPassword() const { return m_xPassword1Edit->get_text(); } void ScRetypePassInputDlg::Init() { @@ -310,7 +291,7 @@ void ScRetypePassInputDlg::Init() m_xBtnRetypePassword->connect_toggled(LINK(this, ScRetypePassInputDlg, RadioBtnHdl)); m_xBtnRemovePassword->connect_toggled(LINK(this, ScRetypePassInputDlg, RadioBtnHdl)); m_xBtnMatchOldPass->connect_toggled(LINK(this, ScRetypePassInputDlg, CheckBoxHdl)); - Link<weld::Entry&,void> aLink2 = LINK( this, ScRetypePassInputDlg, PasswordModifyHdl ); + Link<weld::Entry&, void> aLink2 = LINK(this, ScRetypePassInputDlg, PasswordModifyHdl); m_xPassword1Edit->connect_changed(aLink2); m_xPassword2Edit->connect_changed(aLink2); @@ -356,10 +337,7 @@ void ScRetypePassInputDlg::CheckPasswordInput() m_xBtnOk->set_sensitive(bPassGood); } -IMPL_LINK_NOARG(ScRetypePassInputDlg, OKHdl, weld::Button&, void) -{ - m_xDialog->response(RET_OK); -} +IMPL_LINK_NOARG(ScRetypePassInputDlg, OKHdl, weld::Button&, void) { m_xDialog->response(RET_OK); } IMPL_LINK_NOARG(ScRetypePassInputDlg, RadioBtnHdl, weld::ToggleButton&, void) { |