From: Kornel Benko Date: Fri, 27 Mar 2015 09:53:12 +0000 (+0100) Subject: Expand dummy_functions.cpp with needed class for check_ExternalTransforms. X-Git-Tag: 2.2.0alpha1~1100 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=27844f580e8774d429afb8dce60d80b60911aa7f;p=lyx.git Expand dummy_functions.cpp with needed class for check_ExternalTransforms. --- diff --git a/src/tests/dummy_functions.cpp b/src/tests/dummy_functions.cpp index ce4261c00a..9d4298b526 100644 --- a/src/tests/dummy_functions.cpp +++ b/src/tests/dummy_functions.cpp @@ -35,4 +35,20 @@ namespace lyx { return string(); } + // + // Dummy FontMetrics (needed by Length) + // + + + class FontMetrics { + int em() const { return 0; }; + }; + + class FontInfo; + + FontMetrics const & theFontMetrics(FontInfo const &) { + static FontMetrics dummy; + return dummy; + } + }