Revision: 41411
          http://brlcad.svn.sourceforge.net/brlcad/?rev=41411&view=rev
Author:   davidloman
Date:     2010-11-22 13:11:43 +0000 (Mon, 22 Nov 2010)

Log Message:
-----------
Break out conversion steps of ostringstream to c string by steps.  Eliminated 
warning: "format not a string literal and no format arguments" by passing in a 
zero length string to bu_log.  Hackish, but I don't know any other workaround 
yet.

Modified Paths:
--------------
    rt^3/trunk/src/utility/Logger.cxx

Modified: rt^3/trunk/src/utility/Logger.cxx
===================================================================
--- rt^3/trunk/src/utility/Logger.cxx   2010-11-21 14:44:30 UTC (rev 41410)
+++ rt^3/trunk/src/utility/Logger.cxx   2010-11-22 13:11:43 UTC (rev 41411)
@@ -125,7 +125,10 @@
 
                out << std::endl;
 
-               bu_log(out.str().c_str());
+               std::string std_string = out.str();
+               const char* c_string = std_string.c_str();
+
+               bu_log(c_string, "");
        }
 }
 


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to