Changeset 20814

Show
Ignore:
Timestamp:
09/16/07 19:52:57 (1 year ago)
Author:
patrick
Message:

Minor cleaning. No functional changes.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • juggler/trunk/modules/vapor/vpr/md/POSIX/Util/ErrorImplPosix.cpp

    r19861 r20814  
    3535 
    3636#include <vpr/vprConfig.h> 
    37 #include <string.h
     37#include <cstring
    3838#include <errno.h> 
    3939#include <vpr/md/POSIX/Util/ErrorImplPosix.h> 
     
    4545std::string ErrorImplPosix::getCurrentErrorMsg() 
    4646{ 
    47    const char* err_str(strerror(errno)); 
     47   const char* err_str(std::strerror(errno)); 
    4848 
    4949   if ( NULL != err_str ) 
     
    5757} 
    5858 
    59 void ErrorImplPosix::outputCurrentError (std::ostream& out, 
    60                                         const std::string& prefix) 
     59void ErrorImplPosix::outputCurrentError(std::ostream& out, 
     60                                        const std::string& prefix) 
    6161{ 
    62    const char* err_str = strerror(errno); 
     62   const char* err_str = std::strerror(errno); 
    6363 
    6464   out << "Error (POSIX): " << prefix << " (" << errno; 
  • juggler/trunk/modules/vapor/vpr/md/POSIX/Util/ErrorImplPosix.h

    r19729 r20814  
    3838 
    3939#include <vpr/vprConfig.h> 
    40 #include <iostream
     40#include <iosfwd
    4141#include <string> 
    4242#include <vpr/Util/ErrorBase.h> 
     
    5050 * POSIX Implementation of cross-platform error reporting class. 
    5151 */ 
    52 class VPR_CLASS_API ErrorImplPosix : public ErrorBase 
     52class ErrorImplPosix : public ErrorBase 
    5353{ 
    5454public: 
     
    5656   static std::string getCurrentErrorMsg(); 
    5757 
    58    static void outputCurrentError(std::ostream& out, const std::string& prefix); 
     58   static void outputCurrentError(std::ostream& out, 
     59                                  const std::string& prefix); 
    5960 
    6061   static ErrorType getCurrentError()