libreofficekit/qa/unit/tiledrendering.cxx | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-)
New commits: commit 417ef821bca34a65ed69d375a8f6a3ffb236c236 Author: Jan-Marek Glogowski <[email protected]> Date: Mon Mar 9 11:00:05 2015 +0100 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 diff --git a/libreofficekit/qa/unit/tiledrendering.cxx b/libreofficekit/qa/unit/tiledrendering.cxx index a12d976..7dcd6fb 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 _______________________________________________ Libreoffice-commits mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
