Commit c35d3662 authored by Martin Marinov's avatar Martin Marinov

Fix usage of Base::ENDL

parent a8d36b98
......@@ -56,17 +56,17 @@ class File;
/*!
Stream is a specialization for the Debug system streaming.
*/
class BASEDLLEXPORT Stream : public Base::IOutputStream
class BASEDLLEXPORT Stream : public ::Base::IOutputStream
{
public:
Stream(File& _file) : file_(_file) {}
Base::IOutputStream& print(const int) override;
Base::IOutputStream& print(const size_t) override;
Base::IOutputStream& print(const float) override;
Base::IOutputStream& print(const double) override;
Base::IOutputStream& print(const char* const) override;
Base::IOutputStream& print(const char) override;
::Base::IOutputStream& print(const int) override;
::Base::IOutputStream& print(const size_t) override;
::Base::IOutputStream& print(const float) override;
::Base::IOutputStream& print(const double) override;
::Base::IOutputStream& print(const char* const) override;
::Base::IOutputStream& print(const char) override;
private:
File& file_;
......@@ -156,11 +156,11 @@ std::string to_string(const T& _t)
#define DEB_out(LL, AA) DEB_out_if(true, LL, AA)
#define DEB_out_if(CC, LL, AA) \
DEB_if(CC, LL, deb.stream() << AA << Base::ENDL)
DEB_if(CC, LL, deb.stream() << AA << ::Base::ENDL)
#define DEB_line(LL, AA) DEB_line_if(true, LL, AA)
#define DEB_line_if(CC, LL, AA) \
DEB_if(CC, LL, deb.stream() << AA << Base::ENDL)
DEB_if(CC, LL, deb.stream() << AA << ::Base::ENDL)
#define DEB_warning(LL, AA) DEB_warning_if(true, LL, AA)
#define DEB_warning_if(CC, LL, AA) \
......
......@@ -151,7 +151,7 @@ void Object::add(const Result& _rslt, const String& _data)
if (prev_call_stck != call_stck)
{
test_strm << call_stck << Base::LF;
test_strm << call_stck << ::Base::ENDL;
prev_call_stck = call_stck;
}
#endif//DEB_ON
......@@ -159,9 +159,9 @@ void Object::add(const Result& _rslt, const String& _data)
if (!tag_out)
{
tag_out = true;
test_strm << REPORT_LEVEL_TAG << LEVEL_TEXT[run_lvl] << Base::LF;
test_strm << REPORT_LEVEL_TAG << LEVEL_TEXT[run_lvl] << ::Base::ENDL;
}
test_strm << _rslt << " " << name() << ": " << _data << Base::LF;
test_strm << _rslt << " " << name() << ": " << _data << ::Base::ENDL;
test_strm.stream().flush();
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment