Revision: 56927
http://sourceforge.net/p/brlcad/code/56927
Author: brlcad
Date: 2013-08-18 16:29:18 +0000 (Sun, 18 Aug 2013)
Log Message:
-----------
you can't/shouldn't call + operator on a string literal. += would have been
okay, but the itoa() function is bad. make it more clear what's going on with
a bu_vls
Modified Paths:
--------------
brlcad/trunk/src/conv/3dm/3dm-g.cpp
Modified: brlcad/trunk/src/conv/3dm/3dm-g.cpp
===================================================================
--- brlcad/trunk/src/conv/3dm/3dm-g.cpp 2013-08-18 16:14:24 UTC (rev 56926)
+++ brlcad/trunk/src/conv/3dm/3dm-g.cpp 2013-08-18 16:29:18 UTC (rev 56927)
@@ -139,7 +139,7 @@
void
BuildHierarchy(struct rt_wdb* outfp, std::string &uuid, ON_TextLog* dump)
{
- static int groupcnt = 1;
+ static long groupcnt = 1;
struct wmember members;
BU_LIST_INIT(&members.l);
@@ -155,7 +155,10 @@
}
}
if (groupname.empty()) {
- groupname = "g" + itoa(groupcnt);
+ struct bu_vls str = BU_VLS_INIT_ZERO;
+ bu_vls_printf(&str, "g%ld", groupcnt);
+ groupname = bu_vls_addr(&str);
+ bu_vls_free(&str);
}
MEMBER_MAP::iterator iter = member_map.find(uuid);
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits