]> git.lyx.org Git - lyx.git/blobdiff - src/counters.C
ws changes only
[lyx.git] / src / counters.C
index b794679ffe6f1b5cd91cceffccb12c714a3bcab2..851b87e0574743596037cc26267aa459d29215cf 100644 (file)
@@ -23,6 +23,7 @@
 
 using std::endl;
 using std::ostringstream;
+using std::string;
 
 
 Counter::Counter()
@@ -198,7 +199,7 @@ namespace {
 
 char loweralphaCounter(int n)
 {
-       if (n < 1 || n > 26) 
+       if (n < 1 || n > 26)
                return '?';
        return 'a' + n - 1;
 }
@@ -288,6 +289,8 @@ string Counters::counterLabel(string const & format)
 {
        string label = format;
        while (true) {
+#warning Using boost::regex would make this code a lot simpler... (Lgb)
+
                size_t const i = label.find('\\', 0);
                if (i == string::npos)
                        break;
@@ -333,5 +336,5 @@ string Counters::enumLabel(string const & ctr, string const & langtype)
                        os << alphaCounter(value("enumiv")) << '.';
        }
 
-       return STRCONV(os.str());
+       return os.str();
 }