lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master 5334fa49 04/24: Prefer 'nullptr' to '0'


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 5334fa49 04/24: Prefer 'nullptr' to '0'
Date: Fri, 8 Jul 2022 07:11:25 -0400 (EDT)

branch: master
commit 5334fa49f0f6fcafae398a12ba9a5e0aa99fd90a
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>

    Prefer 'nullptr' to '0'
---
 system_command_wx.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/system_command_wx.cpp b/system_command_wx.cpp
index 7f79a222..a2bd57b7 100644
--- a/system_command_wx.cpp
+++ b/system_command_wx.cpp
@@ -87,7 +87,7 @@ void concrete_system_command(std::string const& cmd_line)
         : nullptr;
         ;
     bool const b = f && f->GetStatusBar();
-    std::ostream null_output(0);
+    std::ostream null_output {nullptr};
     std::ostream& statusbar_if_available = b ? status() : null_output;
 
     statusbar_if_available << "Running..." << std::flush;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]