diff options
author | Tzafrir Cohen <tzafrir@cohens.org.il> | 2009-09-22 22:51:43 +0300 |
---|---|---|
committer | Tzafrir Cohen <tzafrir@cohens.org.il> | 2009-10-04 10:48:40 +0200 |
commit | d893b09863d808bf4127a011f3e76f8ae7433082 (patch) | |
tree | 11cef84ed3ddeff9aee0538739225b0e071b985f /orkbasecxx/LogManager.cpp | |
parent | 99399a212b4530d5a625d9ee81f334bfd173ffd0 (diff) |
avoid some more warnings in orkbasecxx
mainly constifications
Diffstat (limited to 'orkbasecxx/LogManager.cpp')
-rw-r--r-- | orkbasecxx/LogManager.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/orkbasecxx/LogManager.cpp b/orkbasecxx/LogManager.cpp index 6259a70..552d1eb 100644 --- a/orkbasecxx/LogManager.cpp +++ b/orkbasecxx/LogManager.cpp @@ -30,8 +30,8 @@ void OrkLogManager::Initialize() { BasicConfigurator::configure(); - char* logCfgFilename = ""; - char* cfgEnvPath = ""; + char* logCfgFilename = NULL; + const char* cfgEnvPath = ""; int cfgAlloc = 0; cfgEnvPath = ACE_OS::getenv("ORKAUDIO_CONFIG_PATH"); @@ -51,19 +51,19 @@ void OrkLogManager::Initialize() } } - if(!logCfgFilename || !strlen(logCfgFilename)) { + if(!logCfgFilename) { FILE* file = ACE_OS::fopen("logging.properties", "r"); if(file) { // logging.properties exists in the current directory - logCfgFilename = "logging.properties"; + logCfgFilename = (char*)"logging.properties"; fclose(file); } else { // logging.properties could not be found in the current // directory, try to find it in system configuration directory - logCfgFilename = "/etc/orkaudio/logging.properties"; + logCfgFilename = (char*)"/etc/orkaudio/logging.properties"; } } |