]> git.lyx.org Git - lyx.git/blobdiff - src/MetricsInfo.cpp
Less expensive OP first as this might be called often.
[lyx.git] / src / MetricsInfo.cpp
index 92ed4a7eb3e273beb4ca44a888400e08c205be59..89196f3fb3be765fd000b1a18ace026a16054f47 100644 (file)
@@ -75,7 +75,13 @@ Changer MetricsBase::changeFontSet(string const & name)
            && ((isTextFont(oldname) && oldcolor != Color_foreground)
                || (isMathFont(oldname) && oldcolor != Color_math)))
                font.setColor(oldcolor);
+#if __cplusplus >= 201402L
        return rc;
+#else
+       /** In theory, this is not needed with C++11, and modern compilers
+        * will complain in C++11 mode, but gcc 4.9 requires this. */
+       return std::move(rc);
+#endif
 }