Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 12, 2013, 10:05:25 PM (12 years ago)
Author:
landauf
Message:

return pointers instead of references because they could be null

Location:
code/branches/testing/src/libraries/util/output
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/testing/src/libraries/util/output/LogWriter.cc

    r9544 r9547  
    168168
    169169        // request old output from MemoryWriter
    170         if (&OutputManager::getInstance().getMemoryWriter())
    171             OutputManager::getInstance().getMemoryWriter().resendOutput(this);
     170        if (OutputManager::getInstance().getMemoryWriter())
     171            OutputManager::getInstance().getMemoryWriter()->resendOutput(this);
    172172    }
    173173
  • code/branches/testing/src/libraries/util/output/OutputManager.h

    r9543 r9547  
    7272            static OutputManager& getInstanceAndCreateListeners();
    7373
    74             inline MemoryWriter& getMemoryWriter()   { return *this->memoryWriterInstance_; }
    75             inline ConsoleWriter& getConsoleWriter() { return *this->consoleWriterInstance_; }
    76             inline LogWriter& getLogWriter()         { return *this->logWriterInstance_; }
     74            inline MemoryWriter* getMemoryWriter()   { return this->memoryWriterInstance_; }
     75            inline ConsoleWriter* getConsoleWriter() { return this->consoleWriterInstance_; }
     76            inline LogWriter* getLogWriter()         { return this->logWriterInstance_; }
    7777
    7878            virtual void pushMessage(OutputLevel level, const OutputContextContainer& context, const std::string& message);
Note: See TracChangeset for help on using the changeset viewer.