]> git.lyx.org Git - features.git/commitdiff
Avoid implicit copy
authorGeorg Baum <baum@lyx.org>
Sun, 30 Nov 2014 11:59:00 +0000 (12:59 +0100)
committerGeorg Baum <baum@lyx.org>
Sun, 30 Nov 2014 11:59:00 +0000 (12:59 +0100)
src/mathed/InsetMathFont.cpp

index b49985829a9d6a37bced7e97549a0a753c03047e..18af75d528b99de0d83f332dc509802e5cfb323f 100644 (file)
@@ -66,7 +66,7 @@ void InsetMathFont::metrics(MetricsInfo & mi, Dimension & dim) const
 
 void InsetMathFont::draw(PainterInfo & pi, int x, int y) const
 {
-       FontSetChanger dummy(pi.base, key_->name.c_str());
+       FontSetChanger dummy(pi.base, key_->name);
        cell(0).draw(pi, x + 1, y);
        drawMarkers(pi, x, y);
        setPosCache(pi, x, y);