]> git.lyx.org Git - lyx.git/blobdiff - src/support/StrPool.C
fix typo that put too many include paths for most people
[lyx.git] / src / support / StrPool.C
index 5a81c1e6cf3c2aa44b70363337758e54376cc487..782d7426321648cf14eacb79278772d2fd0e2253 100644 (file)
@@ -1,8 +1,8 @@
 /* This file is part of
  * ======================================================
- * 
+ *
  *           LyX, The Document Processor
- *      
+ *
  *          Copyright 2000-2001 Jean-Marc Lasgouttes
  *
  * ======================================================*/
 
 StrPool::~StrPool()
 {
-        for (Pool::const_iterator cit = pool_.begin(); 
+       for (Pool::const_iterator cit = pool_.begin();
             cit != pool_.end() ; ++cit) {
-                delete[] (*cit);
-        }
+               delete[] (*cit);
+       }
 }
 
 /* One interesting thing here would be to store the strings in a map,
@@ -31,12 +31,11 @@ StrPool::~StrPool()
 char const * StrPool::add(string const & str)
 {
        string::size_type s = str.length();
-        char * buf = new char [s + 1];
-        str.copy(buf, s);
-        buf[s] = '\0';
-        pool_.push_back(buf);
-        return buf;
+       char * buf = new char [s + 1];
+       str.copy(buf, s);
+       buf[s] = '\0';
+       pool_.push_back(buf);
+       return buf;
 }
 
 //StrPool strPool;
-