]> git.lyx.org Git - lyx.git/blobdiff - src/Buffer.cpp
Revert previous commit, which committed too much.
[lyx.git] / src / Buffer.cpp
index f7b91a682de8e40e5d38e2d84da3bf4514f20e2c..117cfe0ca7e5ba5ec100d56e2670635a16f1fe11 100644 (file)
@@ -3154,9 +3154,9 @@ void Buffer::getSourceCode(odocstream & os, string const format,
 }
 
 
-ErrorList const & Buffer::errorList(string const & type) const
+ErrorList & Buffer::errorList(string const & type) const
 {
-       static const ErrorList emptyErrorList;
+       static ErrorList emptyErrorList;
        map<string, ErrorList>::iterator it = d->errorLists.find(type);
        if (it == d->errorLists.end())
                return emptyErrorList;
@@ -3165,12 +3165,6 @@ ErrorList const & Buffer::errorList(string const & type) const
 }
 
 
-ErrorList & Buffer::errorList(string const & type)
-{
-       return d->errorLists[type];
-}
-
-
 void Buffer::updateTocItem(std::string const & type,
        DocIterator const & dit) const
 {