Warning fixes

This commit is contained in:
Robert Osfield
2009-02-03 15:28:53 +00:00
parent abb63e3199
commit 734463fcc7
22 changed files with 107 additions and 22 deletions

View File

@@ -386,6 +386,29 @@ its result, and a textual description of any problems.
class TestRecord
{
public:
TestRecord() {}
TestRecord(const TestRecord& rhs):
name_(rhs.name_),
start_(rhs.start_),
stop_(rhs.stop_),
result_(rhs.result_),
problem_(rhs.problem_)
{}
TestRecord& operator = (const TestRecord& rhs)
{
if (&rhs==this) return *this;
name_ = rhs.name_;
start_ = rhs.start_;
stop_ = rhs.stop_;
result_ = rhs.result_;
problem_ = rhs.problem_;
return *this;
}
void start();
void stop();
@@ -394,8 +417,6 @@ class TestRecord
void log(const std::exception& e);
void log(const std::string& s);
// Default copy construction and assignment are OK
// FIXME: Add accessors?
private: