diff options
| author | Dmitry Stogov <dmitry@zend.com> | 2014-04-15 15:40:40 +0400 |
|---|---|---|
| committer | Dmitry Stogov <dmitry@zend.com> | 2014-04-15 15:40:40 +0400 |
| commit | 050d7e38ad4163e7fa65e26724d3516ce7b33601 (patch) | |
| tree | 2bb49b1b73c37b35fc778e83d9353f0eb9cc12a3 /ext/intl/calendar/calendar_class.cpp | |
| parent | 93d3a613d82d32dd6f5499e211bfe194d60898b0 (diff) | |
| download | php-git-050d7e38ad4163e7fa65e26724d3516ce7b33601.tar.gz | |
Cleanup (1-st round)
Diffstat (limited to 'ext/intl/calendar/calendar_class.cpp')
| -rw-r--r-- | ext/intl/calendar/calendar_class.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/intl/calendar/calendar_class.cpp b/ext/intl/calendar/calendar_class.cpp index 497279e090..99828c43ea 100644 --- a/ext/intl/calendar/calendar_class.cpp +++ b/ext/intl/calendar/calendar_class.cpp @@ -168,7 +168,7 @@ static HashTable *Calendar_get_debug_info(zval *object, int *is_temp TSRMLS_DC) add_assoc_bool_ex(&zv, "valid", sizeof("valid"), 1); add_assoc_string_ex(&zv, "type", sizeof("type"), - const_cast<char*>(cal->getType()), 1); + const_cast<char*>(cal->getType())); { zval ztz = zval_used_for_init, @@ -191,10 +191,10 @@ static HashTable *Calendar_get_debug_info(zval *object, int *is_temp TSRMLS_DC) Locale locale = cal->getLocale(ULOC_VALID_LOCALE, uec); if (U_SUCCESS(uec)) { add_assoc_string_ex(&zv, "locale", sizeof("locale"), - const_cast<char*>(locale.getName()), 1); + const_cast<char*>(locale.getName())); } else { add_assoc_string_ex(&zv, "locale", sizeof("locale"), - const_cast<char*>(u_errorName(uec)), 1); + const_cast<char*>(u_errorName(uec))); } } @@ -210,7 +210,7 @@ static HashTable *Calendar_get_debug_info(zval *object, int *is_temp TSRMLS_DC) if (U_SUCCESS(uec)) { add_assoc_long(zfields, name, (long)res); } else { - add_assoc_string(zfields, name, const_cast<char*>(u_errorName(uec)), 1); + add_assoc_string(zfields, name, const_cast<char*>(u_errorName(uec))); } } |
