From bef4ccede4938a1a66df0509e9ec8b0038b294af Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 15 Jun 2021 14:32:44 +0200 Subject: [PATCH] Remove unnecessary wxLogNull from internat sample There is no need to suppress wxLog messages from AddCatalog() because it doesn't log any errors even if the catalog is not found, while tracing messages (given only if WXTRACE is set) from it can be useful. --- samples/internat/internat.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/samples/internat/internat.cpp b/samples/internat/internat.cpp index 3d04895800..7b4e7465c8 100644 --- a/samples/internat/internat.cpp +++ b/samples/internat/internat.cpp @@ -266,10 +266,7 @@ bool MyApp::OnInit() // // if it's not installed on your system, it is just silently ignored #ifdef __LINUX__ - { - wxLogNull noLog; - m_locale.AddCatalog("coreutils"); - } + m_locale.AddCatalog("coreutils"); #endif // Create the main frame window