]> git.lyx.org Git - lyx.git/blobdiff - src/counters.C
oops again! hopefully this works now. Time to go to bed
[lyx.git] / src / counters.C
index cc5d3328ee46609ca81cc402ebdc53b0efb3cfe9..328a279efe5525c11fcc66383df34974f2069128 100644 (file)
@@ -9,10 +9,6 @@
  *
  * ====================================================== */
 
-#ifdef __GNUG__
-#pragma implementation
-#endif
-
 #include <config.h>
 
 #include "counters.h"
@@ -261,11 +257,11 @@ string Counters::labelItem(string const & ctr,
        CounterList::iterator it = counterList.find(ctr);
        if (it == counterList.end()) {
                lyxerr << "Counter does not exist." << endl;
-               return "";
+               return string();
        }
 
        if (!first) {
-               s << "." << value(ctr);
+               s << '.' << value(ctr);
        } else {
                if (numbertype == "sectioning" || numbertype == "appendix") {
                        if (numbertype == "appendix") {