]> git.lyx.org Git - lyx.git/blobdiff - src/gettext.C
Fix working of the spellchecker dialog with ispell when there are no
[lyx.git] / src / gettext.C
index debe17e487772d13230fc635c15728b9d84ac5c3..77b1a672755bca096a9f6e2d725c9d8474288418 100644 (file)
@@ -1,4 +1,3 @@
-// -*- C++ -*-
 /* This file is part of
  * ====================================================== 
  * 
@@ -43,12 +42,12 @@ string const _(string const & str)
                char * tmp = new char[s + 1];
                str.copy(tmp, s);
                tmp[s] = '\0';
-               string ret(gettext(tmp));
+               string const ret(gettext(tmp));
                delete [] tmp;
                return ret;
-       }
-       else
+       } else {
                return string();
+       }
 }
 
 void locale_init()