]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetspecialchar.C
fix #832
[lyx.git] / src / insets / insetspecialchar.C
index ce473a29f2a4d72a1a5ccf9323e8c16ca44eddfb..23a30b53d4f0ec0f17a0b37b416884cb2ce0c172 100644 (file)
@@ -12,9 +12,6 @@
 
 #include <config.h>
 
-#ifdef __GNUG__
-#pragma implementation
-#endif
 
 #include "insetspecialchar.h"
 #include "debug.h"
@@ -38,6 +35,7 @@ InsetSpecialChar::Kind InsetSpecialChar::kind() const
        return kind_;
 }
 
+
 int InsetSpecialChar::ascent(BufferView *, LyXFont const & font) const
 {
        return font_metrics::maxAscent(font);
@@ -87,7 +85,7 @@ int InsetSpecialChar::width(BufferView *, LyXFont const & font) const
 
 
 void InsetSpecialChar::draw(BufferView * bv, LyXFont const & f,
-                           int baseline, float & x, bool) const
+                           int baseline, float & x) const
 {
        Painter & pain = bv->painter();
        LyXFont font(f);
@@ -96,21 +94,21 @@ void InsetSpecialChar::draw(BufferView * bv, LyXFont const & f,
        case HYPHENATION:
        {
                font.setColor(LColor::special);
-               pain.text(int(x), baseline, "-", font);
+               pain.text(int(x), baseline, '-', font);
                x += width(bv, font);
                break;
        }
        case LIGATURE_BREAK:
        {
                font.setColor(LColor::special);
-               pain.text(int(x), baseline, "|", font);
+               pain.text(int(x), baseline, '|', font);
                x += width(bv, font);
                break;
        }
        case END_OF_SENTENCE:
        {
                font.setColor(LColor::special);
-               pain.text(int(x), baseline, ".", font);
+               pain.text(int(x), baseline, '.', font);
                x += width(bv, font);
                break;
        }
@@ -235,7 +233,7 @@ int InsetSpecialChar::latex(Buffer const *, ostream & os, bool /*fragile*/,
                os << "\\lyxarrow{}";
                break;
        case PROTECTED_SEPARATOR:
-               os << (free_space ? " " : "~");
+               os << (free_space ? ' ' : '~');
                break;
        }
        return 0;
@@ -249,7 +247,7 @@ int InsetSpecialChar::ascii(Buffer const *, ostream & os, int) const
        case LIGATURE_BREAK:
                break;
        case END_OF_SENTENCE:
-               os << ".";
+               os << '.';
                break;
        case LDOTS:
                os << "...";
@@ -258,7 +256,7 @@ int InsetSpecialChar::ascii(Buffer const *, ostream & os, int) const
                os << "->";
                break;
        case PROTECTED_SEPARATOR:
-               os << " ";
+               os << ' ';
                break;
        }
        return 0;
@@ -272,7 +270,7 @@ int InsetSpecialChar::linuxdoc(Buffer const *, ostream & os) const
        case LIGATURE_BREAK:
                break;
        case END_OF_SENTENCE:
-               os << ".";
+               os << '.';
                break;
        case LDOTS:
                os << "...";
@@ -295,7 +293,7 @@ int InsetSpecialChar::docbook(Buffer const *, ostream & os, bool) const
        case LIGATURE_BREAK:
                break;
        case END_OF_SENTENCE:
-               os << ".";
+               os << '.';
                break;
        case LDOTS:
                os << "...";