use const string ref
authorKevron Rees <kevron.m.rees@intel.com>
Thu, 12 Jun 2014 16:29:10 +0000 (09:29 -0700)
committerKevron Rees <kevron.m.rees@intel.com>
Thu, 12 Jun 2014 16:29:21 +0000 (09:29 -0700)
lib/debugout.h

index 1d32c18..4644ef7 100644 (file)
@@ -28,7 +28,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 
 using namespace std;
 
-void debugOut(string message);
+void debugOut(const string &message);
 
 class DebugOut 
 {
@@ -53,7 +53,7 @@ public:
                                out<<"WARNING ";
                }
        }
-       DebugOut const& operator << (string message) const
+       DebugOut const& operator << (const string &message) const
        {
                if(mDebugLevel <= debugThreshhold || mDebugLevel == Error || mDebugLevel == Warning)
                {