celix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pepijn Noltes (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (CELIX-365) Refactor some usage of void* to const void*
Date Mon, 10 Oct 2016 10:02:20 GMT

     [ https://issues.apache.org/jira/browse/CELIX-365?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Pepijn Noltes closed CELIX-365.
    Resolution: Fixed

> Refactor some usage of void* to const void*
> -------------------------------------------
>                 Key: CELIX-365
>                 URL: https://issues.apache.org/jira/browse/CELIX-365
>             Project: Celix
>          Issue Type: Improvement
>            Reporter: Pepijn Noltes
>            Assignee: Pepijn Noltes
> I many case where void* or void** is used. const void* or const void** can be used.
> This additional info should help in making the API clear. E.g a return of const void*
indicate that you should not modify the content of the pointer (note that this also includes
not freeing the content). This on itself indicates that you are not owner of the content.
> Probably do not change bundleContext_getService, service_factory->getService, service_factory->ungetService
and serviceReference_getService so that the changes are backwards compatible. 

This message was sent by Atlassian JIRA

View raw message