diff options
author | Christian Parpart <christian@ethereum.org> | 2018-12-12 21:51:22 +0800 |
---|---|---|
committer | Christian Parpart <christian@ethereum.org> | 2018-12-19 18:26:42 +0800 |
commit | 62fe57479e7d8949e4ed2e0efb31238d5d8d6d0a (patch) | |
tree | c2592dc9a8a1abae524717c0d081e51bf1ed3c24 /libdevcore | |
parent | d10bae245ed441314c3bd6ecc74b2a1f3d060d12 (diff) | |
download | dexon-solidity-62fe57479e7d8949e4ed2e0efb31238d5d8d6d0a.tar.gz dexon-solidity-62fe57479e7d8949e4ed2e0efb31238d5d8d6d0a.tar.zst dexon-solidity-62fe57479e7d8949e4ed2e0efb31238d5d8d6d0a.zip |
make use of C++ `= default` constructor declarations as well as more non-static member initialization syntax.
Diffstat (limited to 'libdevcore')
-rw-r--r-- | libdevcore/IndentedWriter.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libdevcore/IndentedWriter.h b/libdevcore/IndentedWriter.h index 4ddd87ed..563c4c96 100644 --- a/libdevcore/IndentedWriter.h +++ b/libdevcore/IndentedWriter.h @@ -34,8 +34,6 @@ DEV_SIMPLE_EXCEPTION(IndentedWriterError); class IndentedWriter { public: - explicit IndentedWriter(): m_lines(std::vector<Line>{{std::string(), 0}}) {} - // Returns the formatted output. std::string format() const; @@ -61,7 +59,7 @@ private: unsigned indentation; }; - std::vector<Line> m_lines; + std::vector<Line> m_lines{{std::string(), 0}}; }; } |