summaryrefslogtreecommitdiff
path: root/vcl/win/app
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-07-03 14:04:23 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-07-03 14:04:23 +0200
commitd6b625058404cfc0bbccf8180c27419812f8d7ba (patch)
tree23c6f2199cc87efef37ff4f15beb1598b6d3bc7d /vcl/win/app
parent1e5e504b2f88fb29a823663fae505863ac00f593 (diff)
loplugin:oncevar (clang-cl): vcl
Change-Id: I0459978c2cfb61cd7251f0e8d9a30f1f19c02c11
Diffstat (limited to 'vcl/win/app')
-rw-r--r--vcl/win/app/salinfo.cxx4
-rw-r--r--vcl/win/app/saltimer.cxx2
2 files changed, 2 insertions, 4 deletions
diff --git a/vcl/win/app/salinfo.cxx b/vcl/win/app/salinfo.cxx
index 06729eca4713..815582c8e2a5 100644
--- a/vcl/win/app/salinfo.cxx
+++ b/vcl/win/app/salinfo.cxx
@@ -166,14 +166,12 @@ tools::Rectangle WinSalSystem::GetDisplayScreenPosSizePixel( unsigned int nScree
int WinSalSystem::ShowNativeMessageBox(const OUString& rTitle, const OUString& rMessage)
{
- int nFlags = MB_TASKMODAL | MB_SETFOREGROUND | MB_ICONWARNING | MB_DEFBUTTON1;
-
ImplHideSplash();
return MessageBoxW(
nullptr,
reinterpret_cast<LPCWSTR>(rMessage.getStr()),
reinterpret_cast<LPCWSTR>(rTitle.getStr()),
- nFlags);
+ MB_TASKMODAL | MB_SETFOREGROUND | MB_ICONWARNING | MB_DEFBUTTON1);
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/win/app/saltimer.cxx b/vcl/win/app/saltimer.cxx
index 8a21780e6d1e..de213deaee7b 100644
--- a/vcl/win/app/saltimer.cxx
+++ b/vcl/win/app/saltimer.cxx
@@ -150,7 +150,7 @@ void EmitTimerCallback()
// try this a short time later again.
if (pSVData->mpSalTimer && ImplSalYieldMutexTryToAcquire())
{
- bool idle = true; // TODO
+ bool const idle = true; // TODO
pSVData->mpSalTimer->CallCallback( idle );
ImplSalYieldMutexRelease();