mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-06-06 23:13:27 +00:00
driver: Use nullptr instead of NULL where applicable
Same thing, but more typesafe, given all NULL is, is a literal 0.
This commit is contained in:
parent
789650d4c0
commit
19f49e071d
@ -104,7 +104,7 @@ public:
|
|||||||
using HelpFunc = void (*)(HelpOutput&);
|
using HelpFunc = void (*)(HelpOutput&);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
FILE* m_sout;
|
FILE* m_sout = nullptr;
|
||||||
HelpFunc m_helpFunc;
|
HelpFunc m_helpFunc;
|
||||||
int m_lineWidth;
|
int m_lineWidth;
|
||||||
hecl::SystemString m_wrapBuffer;
|
hecl::SystemString m_wrapBuffer;
|
||||||
@ -157,7 +157,7 @@ private:
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
explicit HelpOutput(HelpFunc helpFunc)
|
explicit HelpOutput(HelpFunc helpFunc)
|
||||||
: m_sout(NULL), m_helpFunc(helpFunc), m_lineWidth(hecl::GuiMode ? 120 : hecl::ConsoleWidth()) {}
|
: m_helpFunc(helpFunc), m_lineWidth(hecl::GuiMode ? 120 : hecl::ConsoleWidth()) {}
|
||||||
|
|
||||||
void go() {
|
void go() {
|
||||||
#if _WIN32
|
#if _WIN32
|
||||||
|
@ -50,7 +50,7 @@ public:
|
|||||||
|
|
||||||
static void ShowHelp(const hecl::SystemString& toolName) {
|
static void ShowHelp(const hecl::SystemString& toolName) {
|
||||||
/* Select tool's help-text streamer */
|
/* Select tool's help-text streamer */
|
||||||
HelpOutput::HelpFunc helpFunc = NULL;
|
HelpOutput::HelpFunc helpFunc = nullptr;
|
||||||
if (toolName == _SYS_STR("init"))
|
if (toolName == _SYS_STR("init"))
|
||||||
helpFunc = ToolInit::Help;
|
helpFunc = ToolInit::Help;
|
||||||
else if (toolName == _SYS_STR("spec"))
|
else if (toolName == _SYS_STR("spec"))
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
|
|
||||||
class ToolInit final : public ToolBase {
|
class ToolInit final : public ToolBase {
|
||||||
const hecl::SystemString* m_dir = NULL;
|
const hecl::SystemString* m_dir = nullptr;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit ToolInit(const ToolPassInfo& info) : ToolBase(info) {
|
explicit ToolInit(const ToolPassInfo& info) : ToolBase(info) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user