Revision: 41772
          http://brlcad.svn.sourceforge.net/brlcad/?rev=41772&view=rev
Author:   davidloman
Date:     2010-12-22 14:54:38 +0000 (Wed, 22 Dec 2010)

Log Message:
-----------
Fixed a config issue where a Portal was attempting to search the config system 
for the incorrect Key.  This was preventing the Portal from knowing what the 
correct localNodeName was.  Additionally, fixed a small memory leak from a 
pointer that was being allocated but not deallocated.  Converted to local 
variable for simplicity.

Modified Paths:
--------------
    rt^3/trunk/src/libNet/Portal.cxx

Modified: rt^3/trunk/src/libNet/Portal.cxx
===================================================================
--- rt^3/trunk/src/libNet/Portal.cxx    2010-12-22 14:47:41 UTC (rev 41771)
+++ rt^3/trunk/src/libNet/Portal.cxx    2010-12-22 14:54:38 UTC (rev 41772)
@@ -84,14 +84,14 @@
 void
 Portal::sendGSNodeName() {
        QString localNodeName = Config::getInstance()->getConfigValue(
-                       "LocalGSNodeName");
+                       "LocalNodeName");
+
        if (localNodeName.length() == 0) {
                localNodeName = QUuid::createUuid().toString();
        }
 
-
-       RemoteNodenameSetMsg* msg = new RemoteNodenameSetMsg(localNodeName);
-       this->send(msg);
+       RemoteNodenameSetMsg msg(localNodeName);
+       this->send(&msg);
 }
 
 int


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

------------------------------------------------------------------------------
Forrester recently released a report on the Return on Investment (ROI) of
Google Apps. They found a 300% ROI, 38%-56% cost savings, and break-even
within 7 months.  Over 3 million businesses have gone Google with Google Apps:
an online email calendar, and document program that's accessible from your 
browser. Read the Forrester report: http://p.sf.net/sfu/googleapps-sfnew
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to