From d7d47eb639a424f59f84d619d5c9b35006425490 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Wed, 3 Jul 2013 13:03:34 +0200 Subject: [PATCH] GCC 4.6 compatibility: no in-class data initializers. --- src/Text/Test/AbstractFontTest.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Text/Test/AbstractFontTest.cpp b/src/Text/Test/AbstractFontTest.cpp index 8a3dac3c0..ae5bf4932 100644 --- a/src/Text/Test/AbstractFontTest.cpp +++ b/src/Text/Test/AbstractFontTest.cpp @@ -49,6 +49,8 @@ namespace { class SingleDataFont: public Text::AbstractFont { public: + explicit SingleDataFont(): opened(false) {} + Features doFeatures() const override { return Feature::OpenData; } bool doIsOpened() const override { return opened; } void doClose() override {} @@ -65,7 +67,7 @@ class SingleDataFont: public Text::AbstractFont { return nullptr; } - bool opened = false; + bool opened; }; }