|
From: <bc...@us...> - 2007-09-10 17:07:40
|
Revision: 491
http://omc.svn.sourceforge.net/omc/?rev=491&view=rev
Author: bcwise
Date: 2007-09-10 10:07:42 -0700 (Mon, 10 Sep 2007)
Log Message:
-----------
CHANGED some routines to have return values consistent with the
declaration.
Modified Paths:
--------------
base/branches/1.0/src/providers/operating-system/linux_os.cpp
Modified: base/branches/1.0/src/providers/operating-system/linux_os.cpp
===================================================================
--- base/branches/1.0/src/providers/operating-system/linux_os.cpp 2007-09-10 17:00:48 UTC (rev 490)
+++ base/branches/1.0/src/providers/operating-system/linux_os.cpp 2007-09-10 17:07:42 UTC (rev 491)
@@ -826,12 +826,7 @@
String
LinuxOperatingSystem::getOtherTypeDescription()
{
-#if 1
- char *s = "";
- return s;
-#else
return String();
-#endif
} // LinuxOperatingSystem::getOtherTypeDescription()
@@ -938,11 +933,7 @@
String
LinuxOperatingSystem::getStatus()
{
-#if 1
- return("NULL");
-#else
return String();
-#endif
} // LinuxOperatingSystem::getStatus()
@@ -996,8 +987,6 @@
String
LinuxOperatingSystem::getVersion()
{
-
-#if 1
struct utsname puname;
String rval = "";
@@ -1008,10 +997,6 @@
rval = puname.release;
return rval;
-#else
- return String();
-#endif
-
} // LinuxOperatingSystem::getVersion()
//==============================================================================
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|