Add const where we don't modify pointer

SVN revision: 46153
This commit is contained in:
Sebastian Dransfeld 2010-02-13 19:06:16 +00:00
parent d7b706e4f6
commit 5c49be6e01
2 changed files with 4 additions and 4 deletions

View File

@ -18,9 +18,9 @@ EAPI Eina_Bool eina_strbuf_insert(Eina_Strbuf *buf, const char *str,
size_t pos) EINA_ARG_NONNULL(1, 2);
#define eina_strbuf_prepend(buf, str) eina_strbuf_insert(buf, str, 0)
EAPI Eina_Bool eina_strbuf_remove(Eina_Strbuf *buf, unsigned int start, unsigned int end) EINA_ARG_NONNULL(1);
EAPI const char *eina_strbuf_string_get(Eina_Strbuf *buf) EINA_ARG_NONNULL(1);
EAPI const char *eina_strbuf_string_get(const Eina_Strbuf *buf) EINA_ARG_NONNULL(1);
EAPI char *eina_strbuf_string_steal(Eina_Strbuf *buf) EINA_ARG_NONNULL(1);
EAPI size_t eina_strbuf_length_get(Eina_Strbuf *buf) EINA_ARG_NONNULL(1);
EAPI size_t eina_strbuf_length_get(const Eina_Strbuf *buf) EINA_ARG_NONNULL(1);
EAPI Eina_Bool eina_strbuf_replace(Eina_Strbuf *buf, const char *str,
const char *with, unsigned int n) EINA_ARG_NONNULL(1, 2, 3);
#define eina_strbuf_replace_first(buf, str, with) \

View File

@ -263,7 +263,7 @@ eina_strbuf_remove(Eina_Strbuf *buf, unsigned int start, unsigned int end)
* the Eina_Strbuf is modified.
*/
EAPI const char *
eina_strbuf_string_get(Eina_Strbuf *buf)
eina_strbuf_string_get(const Eina_Strbuf *buf)
{
EINA_MAGIC_CHECK_STRBUF(buf, NULL);
@ -291,7 +291,7 @@ eina_strbuf_string_steal(Eina_Strbuf *buf)
* @param buf the buffer
*/
EAPI size_t
eina_strbuf_length_get(Eina_Strbuf *buf)
eina_strbuf_length_get(const Eina_Strbuf *buf)
{
EINA_MAGIC_CHECK_STRBUF(buf, 0);