mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
make use of C++ = default constructor declarations as well as more non-static member initialization syntax.
This commit is contained in:
@@ -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}};
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user