summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2013-09-27 23:21:12 +0200
committerJulien Nabet <serval2412@yahoo.fr>2013-09-27 23:21:12 +0200
commited0b3988db9fc3ec33e25e617b638841d787b10f (patch)
treefaeedcd0f28294208e20879017e575ee165fec11 /vcl
parentbf5db198e19898fbae2f27c3a9f84c2e7f24e00f (diff)
cppcheck: redundantAssignment
Change-Id: Ife6a840c606b1c8673d814491cea3c4dad796c4e
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/app/svapp.cxx8
1 files changed, 3 insertions, 5 deletions
diff --git a/vcl/source/app/svapp.cxx b/vcl/source/app/svapp.cxx
index c7c65fb5a043..b96de57ea0dc 100644
--- a/vcl/source/app/svapp.cxx
+++ b/vcl/source/app/svapp.cxx
@@ -1614,14 +1614,13 @@ void Application::AddToRecentDocumentList(const OUString& rFileUrl, const OUStri
bool InitAccessBridge( bool bShowCancel, bool &rCancelled )
{
- bool bRet = true;
-
// Disable Java bridge on UNIX
#if defined UNX
(void) bShowCancel; // unused
(void) rCancelled; // unused
+ return true;
#else
- bRet = ImplInitAccessBridge( bShowCancel, rCancelled );
+ bool bRet = ImplInitAccessBridge( bShowCancel, rCancelled );
if( !bRet && bShowCancel && !rCancelled )
{
@@ -1632,9 +1631,8 @@ bool InitAccessBridge( bool bShowCancel, bool &rCancelled )
aSettings.SetMiscSettings( aMisc );
Application::SetSettings( aSettings );
}
-#endif // !UNX
-
return bRet;
+#endif // !UNX
}
// MT: AppEvent was in oldsv.cxx, but is still needed...