Skip to content

Commit

Permalink
Remove unnecessary sstream header from univalue.h
Browse files Browse the repository at this point in the history
sstream is not needed in the header. If there needs to be stream objects as
member variables of classes, header iosfwd should be included to make
the compilation time of the dependant headers faster by removing
unnecessary preprocessing.
  • Loading branch information
Heikki Hellgren committed Oct 2, 2018
1 parent 88967f6 commit 66e0ade
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion include/univalue.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
#include <map>
#include <cassert>

#include <sstream> // .get_int64()
#include <utility> // std::pair

class UniValue {
Expand Down
1 change: 1 addition & 0 deletions lib/univalue_get.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include <vector>
#include <limits>
#include <string>
#include <sstream>

#include "univalue.h"

Expand Down

0 comments on commit 66e0ade

Please sign in to comment.