]> git.lyx.org Git - lyx.git/blobdiff - src/font.h
Small fixes
[lyx.git] / src / font.h
index 98f0013f52498f0ae6822c0e69ef69e4f0aad2da..95a55951514e7a88ee6c9d7745368c8565f950e3 100644 (file)
@@ -51,7 +51,7 @@ struct lyxfont {
        }
        ///
        static
-       int width(char const * s, int n, LyXFont const & f);
+       int width(char const * s, size_t n, LyXFont const & f);
        ///
        static
        int width(string const & s, LyXFont const & f) {
@@ -68,13 +68,13 @@ struct lyxfont {
        int signedWidth(string const & s, LyXFont const & f);
        ///
        static
-       int XTextWidth(LyXFont const & f, char * str, int count);
+       int XTextWidth(LyXFont const & f, char const * str, int count);
        ///
        static
        int width(XChar2b const * s, int n, LyXFont const & f);
        ///
        static
-       int XTextWidth16(LyXFont const & f, XChar2b * str, int count);
+       int XTextWidth16(LyXFont const & f, XChar2b const * str, int count);
        ///
        static
        void XSetFont(Display * display, GC gc, LyXFont const & f);