Mercurial > hg > orthanc
comparison OrthancFramework/UnitTestsSources/LoggingTests.cpp @ 4204:318c16cfccab
cppcheck
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 17 Sep 2020 16:18:01 +0200 |
parents | bf7b9edf6b81 |
children | 251a8b07fa37 |
comparison
equal
deleted
inserted
replaced
4203:4d42408da117 | 4204:318c16cfccab |
---|---|
111 **/ | 111 **/ |
112 template<typename T> | 112 template<typename T> |
113 class FuncStreamBuf : public std::stringbuf | 113 class FuncStreamBuf : public std::stringbuf |
114 { | 114 { |
115 public: | 115 public: |
116 FuncStreamBuf(T func) : func_(func) {} | 116 explicit FuncStreamBuf(T func) : func_(func) {} |
117 | 117 |
118 virtual int sync() | 118 virtual int sync() |
119 { | 119 { |
120 std::string text = this->str(); | 120 std::string text = this->str(); |
121 const char* buf = text.c_str(); | 121 const char* buf = text.c_str(); |