NO-OP re-indent
[ardour.git] / libs / pbd / pbd.cc
index 86d04c45bc7fdba63158d2601205adaf9ef8414c..13383c27d1116d373f2a257bc5ef7c596300ed9b 100644 (file)
@@ -50,8 +50,7 @@ namespace {
 
 static bool libpbd_initialized = false;
 
-}
-
+static
 void
 set_debug_options_from_env ()
 {
@@ -60,12 +59,13 @@ set_debug_options_from_env ()
 
        options = Glib::getenv ("PBD_DEBUG", set);
        if (set) {
-               std::cerr << "PBD_DEBUG=" << options << std::endl;
+               std::cerr << X_("PBD_DEBUG=") << options << std::endl;
                PBD::parse_debug_options (options.c_str());
        }
 }
 
 #ifdef PLATFORM_WINDOWS
+static
 void
 test_timers_from_env ()
 {
@@ -75,14 +75,16 @@ test_timers_from_env ()
        options = Glib::getenv ("PBD_TEST_TIMERS", set);
        if (set) {
                if (!PBD::QPC::check_timer_valid ()) {
-                       PBD::error << "Windows QPC Timer source not usable." << endmsg;
+                       PBD::error << X_("Windows QPC Timer source not usable") << endmsg;
                } else {
-                       PBD::info << "Windows QPC Timer source usable." << endmsg;
+                       PBD::info << X_("Windows QPC Timer source usable") << endmsg;
                }
        }
 }
 #endif
 
+} // namespace
+
 bool
 PBD::init ()
 {
@@ -99,20 +101,21 @@ PBD::init ()
 
        /* Initialize windows socket DLL for PBD::CrossThreadChannel
         */
-       
+
        if (WSAStartup(MAKEWORD(1,1),&wsaData) != 0) {
-               fatal << "Windows socket initialization failed with error: " << WSAGetLastError() << endmsg;
+               fatal << X_("Windows socket initialization failed with error: ") << WSAGetLastError() << endmsg;
                abort();
                /*NOTREACHED*/
                return false;
        }
 
+       QPC::initialize();
        test_timers_from_env ();
 
        if (!PBD::MMCSS::initialize()) {
-               PBD::info << "Unable to initialize MMCSS" << endmsg;
+               PBD::info << X_("Unable to initialize MMCSS") << endmsg;
        } else {
-               PBD::info << "MMCSS Initialized" << endmsg;
+               PBD::info << X_("MMCSS Initialized") << endmsg;
        }
 #endif
 
@@ -138,7 +141,7 @@ PBD::cleanup ()
 #ifdef PLATFORM_WINDOWS
        PBD::MMCSS::deinitialize ();
        WSACleanup();
-#endif 
+#endif
 
        EnumWriter::destroy ();
        FPU::destroy ();