tasn pushed a commit to branch master.

http://git.enlightenment.org/bindings/cxx/eflxx.git/commit/?id=9ad24468e0a1c590816fd80bbab110dfab8bb894

commit 9ad24468e0a1c590816fd80bbab110dfab8bb894
Author: Andreas Volz <[email protected]>
Date:   Fri Jan 14 20:43:48 2011 +0000

    fixed some really strange bug!
    I used by accident a reference as member where a normal variable type 
should be used. This leads into a hard to find bug!
    
    
    SVN revision: 56113
---
 edjexx/include/edjexx/Part.h | 2 +-
 edjexx/src/Object.cpp        | 2 +-
 edjexx/src/Part.cpp          | 6 ++++--
 3 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/edjexx/include/edjexx/Part.h b/edjexx/include/edjexx/Part.h
index b1c143d..7ee980c 100644
--- a/edjexx/include/edjexx/Part.h
+++ b/edjexx/include/edjexx/Part.h
@@ -57,7 +57,7 @@ public:
 
 private:
   Object* mParent;
-  const std::string &mPartname;
+  std::string mPartname;
   Evasxx::Object *mExternalObject;
   Evasxx::Object *mExternalContent;
   Evasxx::Object *mSwallowObject;
diff --git a/edjexx/src/Object.cpp b/edjexx/src/Object.cpp
index dd65ba4..99a00ce 100644
--- a/edjexx/src/Object.cpp
+++ b/edjexx/src/Object.cpp
@@ -113,7 +113,7 @@ Part &Object::getPart (const std::string &partname)
 {
   if (hasPart (partname))
   {
-    Part *p;
+    Part *p = NULL;
     map <std::string, Part*>::iterator partFound = mPartList.find (partname);
 
     if (partFound != mPartList.end ()) // found
diff --git a/edjexx/src/Part.cpp b/edjexx/src/Part.cpp
index a699f2d..05498b9 100644
--- a/edjexx/src/Part.cpp
+++ b/edjexx/src/Part.cpp
@@ -10,6 +10,8 @@
 /* STD */
 #include <map>
 
+using namespace std;
+
 namespace Edjexx {
 
 Part::Part (Object* parent, const std::string &partname) :
@@ -19,12 +21,12 @@ Part::Part (Object* parent, const std::string &partname) :
   mExternalContent (NULL),
   mSwallowObject (NULL)
 {
-  Dout( dc::notice, " Part::EdjePart( '" << mPartname << "' ) constructing..." 
);
+  cout << "Part::EdjePart( '" << mPartname << "' ) constructing..." << endl;
 }
 
 Part::~Part()
 {
-  Dout( dc::notice, "~Part::EdjePart( '" << mPartname << "' ) destructing..." 
);
+  cout << "~Part::EdjePart( '" << mPartname << "' ) destructing..." << endl;
 
   delete mExternalObject;
   delete mSwallowObject;

-- 


Reply via email to