]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Const-ify Event::getHeader()'s param
authorMathieu Rene <mrene@avgs.ca>
Wed, 2 Dec 2009 18:19:14 +0000 (18:19 +0000)
committerMathieu Rene <mrene@avgs.ca>
Wed, 2 Dec 2009 18:19:14 +0000 (18:19 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15758 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/include/switch_cpp.h
src/switch_cpp.cpp

index 5a0b55447d468a32a04f8a123c2ba354b0e60a10..ccfcedc339ec7433aa6c7b5b2b0e12eeaa4449a9 100644 (file)
@@ -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);
index 38af96b7938110bf6ca360e092fe7c8478557e53..b19642c277e56c9b276fc0bffffc8b6def239724 100644 (file)
@@ -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("");