1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

com_dotnet: Use true / false instead of 1 / 0 when assigning to bool

Changes done with Coccinelle:

    @@
    bool b;
    @@

    - b = 0
    + b = false

    @@
    bool b;
    @@

    - b = 1
    + b = true
This commit is contained in:
Tim Düsterhus
2025-09-23 22:48:06 +02:00
committed by Tim Düsterhus
parent 4870baacf0
commit 510fffc464
2 changed files with 2 additions and 2 deletions

View File

@@ -281,7 +281,7 @@ PHP_FUNCTION(com_get_active_object)
char *module_name;
size_t module_name_len;
zend_long code_page;
bool code_page_is_null = 1;
bool code_page_is_null = true;
IUnknown *unk = NULL;
IDispatch *obj = NULL;
HRESULT res;

View File

@@ -73,7 +73,7 @@ PHP_COM_DOTNET_API void php_com_wrap_variant(zval *z, VARIANT *v,
VariantInit(&obj->v);
VariantCopyInd(&obj->v, v);
obj->modified = 0;
obj->modified = false;
if ((V_VT(&obj->v) == VT_DISPATCH) && (V_DISPATCH(&obj->v) != NULL)) {
IDispatch_GetTypeInfo(V_DISPATCH(&obj->v), 0, LANG_NEUTRAL, &obj->typeinfo);