Move some repetitive code into a separate method

This commit is contained in:
Tim Wojtulewicz 2022-05-16 11:02:28 -07:00
parent ec50b66ff3
commit f4461d5e95
3 changed files with 25 additions and 80 deletions

View file

@ -289,7 +289,7 @@ protected:
* @return A Location pointer containing the file location information,
* or nullptr if nothing is available.
*/
virtual zeek::detail::Location* GetLocationInfo() const { return nullptr; }
virtual const zeek::detail::Location* GetLocationInfo() const { return nullptr; }
private:
/**
@ -353,6 +353,8 @@ private:
*/
void Finished();
std::string BuildMsgWithLocation(const char* msg);
Queue<BasicInputMessage*> queue_in;
Queue<BasicOutputMessage*> queue_out;