From: Vincent van Ravesteijn Date: Wed, 10 Mar 2010 16:56:13 +0000 (+0000) Subject: Do not use const char *. X-Git-Tag: 2.0.0~3844 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=cd5d57e504728f7862dc93650cb4c51ea747a7e7;p=features.git Do not use const char *. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33696 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/mathed/InsetMathHull.cpp b/src/mathed/InsetMathHull.cpp index 62a28ec4c9..7f4897c8e3 100644 --- a/src/mathed/InsetMathHull.cpp +++ b/src/mathed/InsetMathHull.cpp @@ -313,18 +313,18 @@ int InsetMathHull::defaultColSpace(col_type col) docstring InsetMathHull::standardFont() const { - const char *font_name; + docstring font_name; switch (type_) { case hullRegexp: - font_name = "texttt"; + font_name = from_ascii("texttt"); break; case hullNone: - font_name = "lyxnochange"; + font_name = from_ascii("lyxnochange"); break; default: - font_name = "mathnormal"; + font_name = from_ascii("mathnormal"); } - return from_ascii(font_name); + return font_name; }