summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2014-10-08 17:07:17 +0300
committerTor Lillqvist <tml@collabora.com>2014-10-08 17:07:58 +0300
commite7447790e65b61ac212586eacefe3b861ad46628 (patch)
tree5ece1dd3a1e6e7bee53d616e2cacfb176ac4b5e8 /vcl
parente6bd33d4425bc568fbb40d5dd9137c72c82d411c (diff)
ISO C++ forbids in-class initialization of non-const static member 'nRet'
Change-Id: Ia2bfaff2a284c2ea40198f1152716860d5963482
Diffstat (limited to 'vcl')
-rw-r--r--vcl/workben/icontest.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/vcl/workben/icontest.cxx b/vcl/workben/icontest.cxx
index c043ae03154b..2d0923139b40 100644
--- a/vcl/workben/icontest.cxx
+++ b/vcl/workben/icontest.cxx
@@ -116,7 +116,7 @@ public:
virtual int Main() SAL_OVERRIDE;
private:
- int nRet = EXIT_SUCCESS;
+ int nRet;
void DoItWithVcl(std::vector<OUString>& aImageFiles);
void DoItWithOpenGL(std::vector<OUString>& aImageFiles);
@@ -124,6 +124,8 @@ private:
void IconTestApp::Init()
{
+ nRet = EXIT_SUCCESS;
+
uno::Reference<uno::XComponentContext> xContext =
cppu::defaultBootstrap_InitialComponentContext();
uno::Reference<lang::XMultiComponentFactory> xFactory =