diff options
| author | 2013-12-18 16:20:40 +0100 | |
|---|---|---|
| committer | 2013-12-18 16:20:40 +0100 | |
| commit | 1e8389b27ff99ad9f48c890486ebef936acafc41 (patch) | |
| tree | 44543c79a89509604d2fa7b910c278476b9a0eba /src/helperfuncs.cpp | |
| parent | Fix issues discovered by Coverity (diff) | |
Clean up CoreException
- Remove default constructor
- Replace virtual functions returning C strings with functions returning const std::string refs
Diffstat (limited to 'src/helperfuncs.cpp')
| -rw-r--r-- | src/helperfuncs.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/helperfuncs.cpp b/src/helperfuncs.cpp index 1899ce1b3..354d0a112 100644 --- a/src/helperfuncs.cpp +++ b/src/helperfuncs.cpp @@ -404,13 +404,13 @@ const char* InspIRCd::Format(va_list &vaList, const char* formatString) if (vsnret > 0 && static_cast<unsigned>(vsnret) < formatBuffer.size()) { - return &formatBuffer[0]; + break; } formatBuffer.resize(formatBuffer.size() * 2); } - throw CoreException(); + return &formatBuffer[0]; } const char* InspIRCd::Format(const char* formatString, ...) |
