diff --git a/src/bsontools/bsonmain.cpp b/src/bsontools/bsonmain.cpp index 3423d76..0adef25 100755 --- a/src/bsontools/bsonmain.cpp +++ b/src/bsontools/bsonmain.cpp @@ -87,6 +87,7 @@ namespace bsontools { class node { public: node(string s) : fieldName(s) {} + virtual ~node() {} string fieldName; virtual void emit(bsonobjbuilder& b) = 0; virtual void print(int) = 0; diff --git a/src/bsontools/hex.cpp b/src/bsontools/hex.cpp index 611b7a4..4d40c2d 100755 --- a/src/bsontools/hex.cpp +++ b/src/bsontools/hex.cpp @@ -78,7 +78,7 @@ int main(int argc, char* argv[]) cout << '\n'; if (!cin.eof() ) cout << "\n"; - txt.empty(); + txt.clear(); continue; } }