]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetcite.C
fix typo that put too many include paths for most people
[lyx.git] / src / insets / insetcite.C
index 7772349b6a31d32faf2864dceb26d6bf7ad8eba5..df1dddd80380ad9b4c8e4cff9d85ef3efcd84758 100644 (file)
@@ -1,10 +1,10 @@
 /* This file is part of*
- * ====================================================== 
+ * ======================================================
  *
  *           LyX, The Document Processor
- *      
+ *
  *           Copyright 2000-2001 The LyX Team.
- * 
+ *
  * ====================================================== */
 
 #include <config.h>
 #include "BufferView.h"
 #include "LaTeXFeatures.h"
 #include "LyXView.h"
+
 #include "frontends/Dialogs.h"
+
 #include "support/lstrings.h"
 
+
+using std::ostream;
+
+
 InsetCitation::InsetCitation(InsetCommandParams const & p, bool)
        : InsetCommand(p)
 {}
@@ -36,7 +42,7 @@ string const InsetCitation::getScreenLabel(Buffer const *) const
                keys = frontStrip(split(keys, label, ',')) + ",";
 
                string::size_type const maxSize = 40;
-               while (contains( keys, "," )) {
+               while (contains(keys, ",")) {
                        string key;
                        keys = frontStrip(split(keys, key, ','));
 
@@ -68,17 +74,17 @@ void InsetCitation::edit(BufferView * bv, bool)
        edit(bv, 0, 0, 0);
 }
 
-int InsetCitation::ascii(Buffer const *, std::ostream & os, int) const
+int InsetCitation::ascii(Buffer const *, ostream & os, int) const
 {
-        os << "[" << getContents() << "]";
-        return 0;
+       os << "[" << getContents() << "]";
+       return 0;
 }
 
 // Have to overwrite the default InsetCommand method in order to check that
 // the \cite command is valid. Eg, the user has natbib enabled, inputs some
 // citations and then changes his mind, turning natbib support off. The output
 // should revert to \cite[]{}
-int InsetCitation::latex(Buffer const * buffer, std::ostream & os,
+int InsetCitation::latex(Buffer const * buffer, ostream & os,
                        bool /*fragile*/, bool/*fs*/) const
 {
        os << "\\";
@@ -96,7 +102,7 @@ int InsetCitation::latex(Buffer const * buffer, std::ostream & os,
             it != getContents().end(); ++it) {
                if (*it != ' ') content += *it;
        }
-       
+
        os << "{" << content << "}";
 
        return 0;