Don't use references for constant c-types
[ardour.git] / libs / ardour / system_exec.cc
index 6ee6d809e083adfaf4679e3e0bb41c0e0309da0a..aec89564223511a08834ca51b2e180850d16e010 100644 (file)
 #include "ardour/filesystem_paths.h"
 #include "ardour/system_exec.h"
 
-using namespace ARDOUR;
+namespace ARDOUR {
 
-#ifndef PLATFORM_WINDOWS
 char * SystemExec::_vfork_exec_wrapper = NULL;
-#endif
 
 static char *vfork_exec_wrapper_path() {
 #ifdef PLATFORM_WINDOWS
@@ -43,8 +41,7 @@ static char *vfork_exec_wrapper_path() {
                                        ),
                                "ardour-exec-wrapper", vfork_exec_wrapper)) {
                PBD::fatal << "vfork exec wrapper 'ardour-exec-wrapper' was not found in $PATH." << endmsg;
-               /* not reached */
-               return NULL;
+               abort(); /*NOTREACHED*/
        }
        return strdup(vfork_exec_wrapper.c_str());
 #endif
@@ -81,3 +78,5 @@ SystemExec::SystemExec (std::string c, const std::map<char, std::string> subs)
 }
 
 SystemExec::~SystemExec() { }
+
+} // namespace ARDOUR