aboutsummaryrefslogtreecommitdiffstats
path: root/src/helperfuncs.cpp
diff options
context:
space:
mode:
authorGravatar Attila Molnar2013-12-18 16:20:40 +0100
committerGravatar Attila Molnar2013-12-18 16:20:40 +0100
commit1e8389b27ff99ad9f48c890486ebef936acafc41 (patch)
tree44543c79a89509604d2fa7b910c278476b9a0eba /src/helperfuncs.cpp
parentFix 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.cpp4
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, ...)