summaryrefslogtreecommitdiff
path: root/cui/source/dialogs
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-08-20 10:13:13 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-08-20 11:28:46 +0200
commite367e59e37499d0efca381f0b41df52c7cfc2026 (patch)
tree5d723ef00ca4d480231571cedef3029640ad6aa3 /cui/source/dialogs
parent02c9c9adf65883ecaeef0e86a4b0b70ee3d5cf52 (diff)
loplugin:unusedfields
Change-Id: Ie27afe4c2438c44baece4b926572584c6695dc39 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120774 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'cui/source/dialogs')
-rw-r--r--cui/source/dialogs/tipofthedaydlg.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/cui/source/dialogs/tipofthedaydlg.cxx b/cui/source/dialogs/tipofthedaydlg.cxx
index c4d1f876f935..ed528d3042de 100644
--- a/cui/source/dialogs/tipofthedaydlg.cxx
+++ b/cui/source/dialogs/tipofthedaydlg.cxx
@@ -73,17 +73,17 @@ TipOfTheDayDialog::TipOfTheDayDialog(weld::Window* pParent)
}
const auto t0 = std::chrono::system_clock::now().time_since_epoch();
- m_nDay = std::chrono::duration_cast<std::chrono::hours>(t0).count() / 24;
+ sal_Int32 nDay = std::chrono::duration_cast<std::chrono::hours>(t0).count() / 24;
// save this time to the config now instead of in the dtor otherwise we
// end up with multiple copies of this dialog every time we open a new
// document if the first one isn't closed
std::shared_ptr<comphelper::ConfigurationChanges> xChanges(
comphelper::ConfigurationChanges::create());
- officecfg::Office::Common::Misc::LastTipOfTheDayShown::set(m_nDay, xChanges);
+ officecfg::Office::Common::Misc::LastTipOfTheDayShown::set(nDay, xChanges);
xChanges->commit();
- if (m_nDay > officecfg::Office::Common::Misc::LastTipOfTheDayShown::get())
+ if (nDay > officecfg::Office::Common::Misc::LastTipOfTheDayShown::get())
m_nCurrentTip++;
UpdateTip();