Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/include/internal
diff options
context:
space:
mode:
authorMartin Hořeňovský2017-08-01 17:51:32 +0200
committerMartin Hořeňovský2017-08-01 17:51:32 +0200
commitd4e796c1382b850d020ff197bfc0ca82c70d05e2 (patch)
treed49655dc4f774dd78288b60036282b8571f2b659 /include/internal
parent0a3f899d6a63ae01bdc33c6a7c2d2eb8086db702 (diff)
downloadcatch3-d4e796c1382b850d020ff197bfc0ca82c70d05e2.tar.gz
Move Section(End)Info bodies to proper .cpp file
Diffstat (limited to 'include/internal')
-rw-r--r--include/internal/catch_section.cpp9
-rw-r--r--include/internal/catch_section_info.cpp25
-rw-r--r--include/internal/catch_section_info.h4
3 files changed, 26 insertions, 12 deletions
diff --git a/include/internal/catch_section.cpp b/include/internal/catch_section.cpp
index 8c300415..4f192446 100644
--- a/include/internal/catch_section.cpp
+++ b/include/internal/catch_section.cpp
@@ -12,15 +12,6 @@
namespace Catch {
- SectionInfo::SectionInfo
- ( SourceLineInfo const& _lineInfo,
- std::string const& _name,
- std::string const& _description )
- : name( _name ),
- description( _description ),
- lineInfo( _lineInfo )
- {}
-
Section::Section( SectionInfo const& info )
: m_info( info ),
m_sectionIncluded( getResultCapture().sectionStarted( m_info, m_assertions ) )
diff --git a/include/internal/catch_section_info.cpp b/include/internal/catch_section_info.cpp
new file mode 100644
index 00000000..e2846b8a
--- /dev/null
+++ b/include/internal/catch_section_info.cpp
@@ -0,0 +1,25 @@
+/*
+ * Created by Martin on 01/08/2017.
+ *
+ * Distributed under the Boost Software License, Version 1.0. (See accompanying
+ * file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+ */
+
+#include "catch_section_info.h"
+
+namespace Catch {
+
+ SectionInfo::SectionInfo
+ ( SourceLineInfo const& _lineInfo,
+ std::string const& _name,
+ std::string const& _description )
+ : name( _name ),
+ description( _description ),
+ lineInfo( _lineInfo )
+ {}
+
+ SectionEndInfo::SectionEndInfo( SectionInfo const& _sectionInfo, Counts const& _prevAssertions, double _durationInSeconds )
+ : sectionInfo( _sectionInfo ), prevAssertions( _prevAssertions ), durationInSeconds( _durationInSeconds )
+ {}
+
+} // end namespace Catch
diff --git a/include/internal/catch_section_info.h b/include/internal/catch_section_info.h
index c9f1c7f1..a10b2b77 100644
--- a/include/internal/catch_section_info.h
+++ b/include/internal/catch_section_info.h
@@ -27,9 +27,7 @@ namespace Catch {
};
struct SectionEndInfo {
- SectionEndInfo( SectionInfo const& _sectionInfo, Counts const& _prevAssertions, double _durationInSeconds )
- : sectionInfo( _sectionInfo ), prevAssertions( _prevAssertions ), durationInSeconds( _durationInSeconds )
- {}
+ SectionEndInfo( SectionInfo const& _sectionInfo, Counts const& _prevAssertions, double _durationInSeconds );
SectionInfo sectionInfo;
Counts prevAssertions;