diff options
author | Jan-Marek Glogowski <glogow@fbihome.de> | 2015-03-09 11:00:05 +0100 |
---|---|---|
committer | Jan-Marek Glogowski <glogow@fbihome.de> | 2015-03-09 11:05:37 +0100 |
commit | 417ef821bca34a65ed69d375a8f6a3ffb236c236 (patch) | |
tree | 33b8ef9450bc9912904caffb5d244f3b64f27ad1 /libreofficekit | |
parent | 097a16b59884c777f724cec6c5d42734974ed44b (diff) |
Fix Ubuntu Precise build: non-static member init
gcc 4.6 reports: sorry, unimplemented: non-static data member
initializers
Moves the initialization into the constructors initializer list.
Change-Id: Id25ac042aa3207135edda2485d3c5fe8f98652af
Diffstat (limited to 'libreofficekit')
-rw-r--r-- | libreofficekit/qa/unit/tiledrendering.cxx | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/libreofficekit/qa/unit/tiledrendering.cxx b/libreofficekit/qa/unit/tiledrendering.cxx index a12d976d3810..7dcd6fb11b78 100644 --- a/libreofficekit/qa/unit/tiledrendering.cxx +++ b/libreofficekit/qa/unit/tiledrendering.cxx @@ -49,11 +49,16 @@ OUString getFileURLFromSystemPath(OUString const & path) class TiledRenderingTest : public ::CppUnit::TestFixture { public: - const string m_sSrcRoot = getenv( "SRC_ROOT" ); - const string m_sInstDir = getenv( "INSTDIR" ); - const string m_sLOPath = m_sInstDir + "/program"; - - TiledRenderingTest() {} + const string m_sSrcRoot; + const string m_sInstDir; + const string m_sLOPath; + + TiledRenderingTest() + : m_sSrcRoot( getenv( "SRC_ROOT" ) ) + , m_sInstDir( getenv( "INSTDIR" ) ) + , m_sLOPath( m_sInstDir + "/program" ) + { + } // Currently it isn't possible to do multiple startup/shutdown // cycle of LOK in a single process -- hence we run all our tests |