]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
buffer: clean up namespace pollution
authorSage Weil <sage@newdream.net>
Fri, 23 Apr 2010 23:21:05 +0000 (16:21 -0700)
committerSage Weil <sage@newdream.net>
Mon, 26 Apr 2010 21:08:19 +0000 (14:08 -0700)
src/include/buffer.h

index a5ed2e3e579c4c49021ac0af7aca5c3cef5579b5..f4d14ae84d4e13a825b87325db44c03ba87a1252 100644 (file)
@@ -52,9 +52,6 @@ void  *valloc(size_t);
 #include <string>
 #include <exception>
 
-using std::istream;
-using std::string;
-
 #include "atomic.h"
 #include "page.h"
 #include "crc32c.h"
@@ -935,7 +932,7 @@ public:
        append_buffer.set_length(0);   // unused, so far.
       }
     }
-    void append(const string& s) {
+    void append(const std::string& s) {
       append(s.data(), s.length());
     }
     void append(const ptr& bp) {
@@ -965,9 +962,9 @@ public:
           ++p) 
        _buffers.push_back(*p);
     }
-    void append(istream& in) {
+    void append(std::istream& in) {
       while (!in.eof()) {
-       string s;
+       std::string s;
        getline(in, s);
        append(s.c_str(), s.length());
        append("\n", 1);