Skip to content

Commit

Permalink
Reduce code size when removing command line from main
Browse files Browse the repository at this point in the history
  • Loading branch information
Tymoteusz Blazejczyk committed Feb 19, 2017
1 parent 1a08a64 commit 6da0b99
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion include/utest/test_command_line.hpp
Expand Up @@ -54,6 +54,8 @@ class TestCommandLine {
public:
using Arguments = TestSpan<char*>;

TestCommandLine() noexcept;

TestCommandLine(const TestCommandLine& other) noexcept = default;

TestCommandLine(TestCommandLine&& other) noexcept = default;
Expand All @@ -66,7 +68,7 @@ class TestCommandLine {

TestCommandLine(int argc, char* argv[], TestWriter& writer) noexcept;

TestCommandLine(const Arguments& arguments = {}) noexcept;
TestCommandLine(const Arguments& arguments) noexcept;

TestCommandLine(const Arguments& arguments, TestWriter& writer) noexcept;

Expand Down
4 changes: 4 additions & 0 deletions src/utest/test_command_line.cpp
Expand Up @@ -58,6 +58,10 @@ const TestCommandLine::Command TestCommandLine::g_commands[]{
}
};

TestCommandLine::TestCommandLine() noexcept :
m_writer{TestWriter::get_default()}
{ }

TestCommandLine::TestCommandLine(const Arguments& arguments) noexcept :
m_writer{TestWriter::get_default()},
m_arguments{arguments}
Expand Down

0 comments on commit 6da0b99

Please sign in to comment.