summaryrefslogtreecommitdiff
path: root/include/vcl
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-03-24 08:54:35 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-03-24 15:06:24 +0100
commitceb8f5d62c7afc5547c9a6de8eb570a11b5fbd67 (patch)
tree2782cb4bb3adfe5ad11caa8f5a9c18b82bb03ee4 /include/vcl
parent86fac2109d3b5e159628aee6392ecc856fb8a5a6 (diff)
loplugin:constantparam
Change-Id: I86592be0717c062a918108bf4437074b0f70b372 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132029 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/vcl')
-rw-r--r--include/vcl/TaskStopwatch.hxx9
-rw-r--r--include/vcl/menu.hxx2
2 files changed, 5 insertions, 6 deletions
diff --git a/include/vcl/TaskStopwatch.hxx b/include/vcl/TaskStopwatch.hxx
index 1ca2c21a7e46..b27b3a316abe 100644
--- a/include/vcl/TaskStopwatch.hxx
+++ b/include/vcl/TaskStopwatch.hxx
@@ -39,14 +39,14 @@ class VCL_DLLPUBLIC TaskStopwatch
bool m_bConsiderLastIterTime;
VclInputFlags m_eInputStop;
- bool nextIter(bool bQueryOnly)
+ bool nextIter()
{
sal_uInt64 nCurTicks = tools::Time::GetSystemTicks();
// handle system ticks wrap as exceeded time slice
if (nCurTicks < m_nStartTicks)
return false;
- if (!bQueryOnly && m_bConsiderLastIterTime)
+ if (m_bConsiderLastIterTime)
{
// based on the last iter runtime, we don't expect to finish in time
// m_nTimeSlice < (nCurTicks - m_nStartTicks) + (nCurTicks - m_nIterStartTicks)
@@ -57,8 +57,7 @@ class VCL_DLLPUBLIC TaskStopwatch
else if (m_nTimeSlice < nCurTicks - m_nStartTicks)
return false;
- if (!bQueryOnly)
- m_nIterStartTicks = nCurTicks;
+ m_nIterStartTicks = nCurTicks;
return !Application::AnyInput(m_eInputStop);
}
@@ -84,7 +83,7 @@ public:
/**
* Returns true, if another iteration will probably pass in the time slot
**/
- bool continueIter() { return nextIter(false); }
+ bool continueIter() { return nextIter(); }
/**
* Reset the stopwatch
diff --git a/include/vcl/menu.hxx b/include/vcl/menu.hxx
index a6699a7e71d9..54df7ee66631 100644
--- a/include/vcl/menu.hxx
+++ b/include/vcl/menu.hxx
@@ -289,7 +289,7 @@ public:
bool IsMenuVisible() const;
virtual bool IsMenuBar() const = 0;
- void RemoveDisabledEntries( bool bCheckPopups = true, bool bRemoveEmptyPopups = false );
+ void RemoveDisabledEntries( bool bRemoveEmptyPopups = false );
void UpdateNativeMenu();