summaryrefslogtreecommitdiff
path: root/cpp/lib/common/sys/apr/APRBase.cpp
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2006-12-04 17:47:33 +0000
committerGordon Sim <gsim@apache.org>2006-12-04 17:47:33 +0000
commit0a8af4bb049082c2601cea509c7a28ec4ff5ef87 (patch)
tree6f2f4750e71481459180a67f4e752781640baa0a /cpp/lib/common/sys/apr/APRBase.cpp
parentb9d2b4bc80748d0a6a7209d0ce5dce97565c83ae (diff)
downloadqpid-python-0a8af4bb049082c2601cea509c7a28ec4ff5ef87.tar.gz
Patch from Andrew Stitcher:
This patch improves the performance of my test by about 20% It removes a lot of unnecessary string creation, as ...::check(...) is called for every CHECK_APR_SUCCESS(), and they are very frequent. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@482262 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/lib/common/sys/apr/APRBase.cpp')
-rw-r--r--cpp/lib/common/sys/apr/APRBase.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/lib/common/sys/apr/APRBase.cpp b/cpp/lib/common/sys/apr/APRBase.cpp
index 19a1b93103..30c84e8736 100644
--- a/cpp/lib/common/sys/apr/APRBase.cpp
+++ b/cpp/lib/common/sys/apr/APRBase.cpp
@@ -82,7 +82,7 @@ void APRBase::decrement(){
getInstance()->_decrement();
}
-void qpid::sys::check(apr_status_t status, const std::string& file, const int line){
+void qpid::sys::check(apr_status_t status, const char* file, const int line){
if (status != APR_SUCCESS){
const int size = 50;
char tmp[size];