Skip to content

Commit

Permalink
remove errors/warnings from coda-oss
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Smith committed Jan 6, 2022
1 parent a535245 commit 5d89076
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ class Throwable11 : public std::exception
return toString() + backtrace;
}

const char* what() const noexcept override final // derived classes override toString()
const char* what() const noexcept final // derived classes override toString()
{
// adding this to toString() output could (significantly) alter existing display
mWhat = toString(true /*includeBacktrace*/); // call any derived toString()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,6 @@ struct Handler : public Filterer
// for writing directly to stream,
// used for the bulk of the logging for speed
virtual void emitRecord(const LogRecord* record) = 0;
virtual void emitRecord(const LogRecord& record)
{
return emitRecord(&record);
}

LogLevel mLevel = LogLevel::LOG_NOTSET;
sys::Mutex mHandlerLock;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ struct MemoryHandler : public Handler
protected:
virtual void write(const std::string& str);

virtual void emitRecord(const LogRecord* record);
void emitRecord(const LogRecord* record) override;

private:
typedef std::map<LogLevel, std::vector<std::string> > LogMap;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ struct StreamHandler : public Handler

//! for writing directly to stream,
// used for the bulk of the logging for speed
virtual void emitRecord(const LogRecord* record);
void emitRecord(const LogRecord* record) override;

mem::auto_ptr<io::OutputStream> mStream;

Expand Down

0 comments on commit 5d89076

Please sign in to comment.