Skip to content

[BUG] use C++11 keyword nullptr #241

Description

@LeSpocky

Prerequisites

Description

C++ from C++11 onwards has the keyword nullptr to help compiler and developer communicating intent when using null pointers. Use that instead of confusing fellow developers with unusual variants of null.

Steps to Reproduce

n.a.

Expected behavior: Use nullptr if null pointer is meant.

Actual behavior: 0x0 is used in huge parts of the codebase.

Reproduces how often: always.

Versions

  • OS version: n.a.
  • libhttpserver version: 0.18.2-22-g263f2bd (current master)
  • libmicrohttpd version: n.a.

Additional Information

According to #227 C++14 is required for libhttpserver already, so using C++11 features should be fine.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugConfirmed bugs or reports that are very likely to be bugs.

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions