]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetCitation.cpp
Fix text frame drawing.
[lyx.git] / src / insets / InsetCitation.cpp
index fafb585855e073d7eda42d6bf3726dab4c8a6b42..1cd5c8e4b0620831b55c690eb9fbb69bbdbe3185 100644 (file)
@@ -13,7 +13,6 @@
 
 #include "InsetCitation.h"
 
-#include "Biblio.h"
 #include "Buffer.h"
 #include "BufferParams.h"
 #include "debug.h"
@@ -34,8 +33,6 @@
 
 namespace lyx {
 
-using support::ascii_lowercase;
-using support::contains;
 using support::FileName;
 using support::getStringFromVector;
 using support::getVectorFromString;
@@ -46,11 +43,8 @@ using support::split;
 using support::tokenPos;
 
 using std::endl;
-using std::replace;
 using std::string;
-using std::ostream;
 using std::vector;
-using std::map;
 
 namespace fs = boost::filesystem;
 
@@ -372,6 +366,8 @@ docstring const getNatbibLabel(Buffer const & buffer,
 
 docstring const getBasicLabel(docstring const & keyList, docstring const & after)
 {
+       using support::contains;
+
        docstring keys(keyList);
        docstring label;
 
@@ -549,7 +545,7 @@ void InsetCitation::replaceContents(string const & from, string const & to)
 {
        if (tokenPos(getContents(), ',', from) != -1) {
                vector<string> items = getVectorFromString(getContents());
-               replace(items.begin(), items.end(), from, to);
+               std::replace(items.begin(), items.end(), from, to);
                setContents(getStringFromVector(items));
        }
 }