From: Mathieu Rene Date: Wed, 2 Dec 2009 18:19:14 +0000 (+0000) Subject: Const-ify Event::getHeader()'s param X-Git-Tag: v1.0.6~1179 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c27a26e30e84a0bf07a1bffe4673130a17629d0e;p=thirdparty%2Ffreeswitch.git Const-ify Event::getHeader()'s param git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15758 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/include/switch_cpp.h b/src/include/switch_cpp.h index 5a0b55447d..ccfcedc339 100644 --- a/src/include/switch_cpp.h +++ b/src/include/switch_cpp.h @@ -154,7 +154,7 @@ SWITCH_DECLARE(void) consoleCleanLog(char *msg); virtual SWITCH_DECLARE_CONSTRUCTOR ~ Event(); SWITCH_DECLARE(const char *) serialize(const char *format = NULL); SWITCH_DECLARE(bool) setPriority(switch_priority_t priority = SWITCH_PRIORITY_NORMAL); - SWITCH_DECLARE(const char *) getHeader(char *header_name); + SWITCH_DECLARE(const char *) getHeader(const char *header_name); SWITCH_DECLARE(char *) getBody(void); SWITCH_DECLARE(const char *) getType(void); SWITCH_DECLARE(bool) addBody(const char *value); diff --git a/src/switch_cpp.cpp b/src/switch_cpp.cpp index 38af96b793..b19642c277 100644 --- a/src/switch_cpp.cpp +++ b/src/switch_cpp.cpp @@ -341,7 +341,7 @@ SWITCH_DECLARE(bool) Event::setPriority(switch_priority_t priority) return false; } -SWITCH_DECLARE(const char *)Event::getHeader(char *header_name) +SWITCH_DECLARE(const char *)Event::getHeader(const char *header_name) { this_check("");