From: <vo...@us...> - 2008-08-20 18:58:53
|
Revision: 794 http://opde.svn.sourceforge.net/opde/?rev=794&view=rev Author: volca Date: 2008-08-20 18:59:02 +0000 (Wed, 20 Aug 2008) Log Message: ----------- some more of: pass by const ref for shared_ptr Modified Paths: -------------- trunk/src/bindings/DTypeBinder.cpp trunk/src/bindings/DTypeBinder.h trunk/src/bindings/LinkQueryResultBinder.cpp trunk/src/bindings/LinkQueryResultBinder.h trunk/src/bindings/RelationBinder.cpp trunk/src/bindings/RelationBinder.h Modified: trunk/src/bindings/DTypeBinder.cpp =================================================================== --- trunk/src/bindings/DTypeBinder.cpp 2008-08-20 18:57:02 UTC (rev 793) +++ trunk/src/bindings/DTypeBinder.cpp 2008-08-20 18:59:02 UTC (rev 794) @@ -140,7 +140,7 @@ } // ------------------------------------------ - PyObject* DTypeBinder::create(DTypePtr type) { + PyObject* DTypeBinder::create(const DTypePtr& type) { Object* object = construct(&msType); if (object != NULL) { Modified: trunk/src/bindings/DTypeBinder.h =================================================================== --- trunk/src/bindings/DTypeBinder.h 2008-08-20 18:57:02 UTC (rev 793) +++ trunk/src/bindings/DTypeBinder.h 2008-08-20 18:59:02 UTC (rev 794) @@ -37,7 +37,7 @@ // --- Python type related methods --- static PyObject* getattr(PyObject *self, char *name); - static PyObject* create(DTypePtr type); + static PyObject* create(const DTypePtr& type); /// Extracts a DTypePtr from the PyObject*, checking type static DTypePtr extractDType(PyObject* object); Modified: trunk/src/bindings/LinkQueryResultBinder.cpp =================================================================== --- trunk/src/bindings/LinkQueryResultBinder.cpp 2008-08-20 18:57:02 UTC (rev 793) +++ trunk/src/bindings/LinkQueryResultBinder.cpp 2008-08-20 18:59:02 UTC (rev 794) @@ -107,7 +107,7 @@ } // ------------------------------------------ - PyObject* LinkQueryResultBinder::create(LinkQueryResultPtr result) { + PyObject* LinkQueryResultBinder::create(const LinkQueryResultPtr& result) { Object* object = construct(&msType); if (object != NULL) { Modified: trunk/src/bindings/LinkQueryResultBinder.h =================================================================== --- trunk/src/bindings/LinkQueryResultBinder.h 2008-08-20 18:57:02 UTC (rev 793) +++ trunk/src/bindings/LinkQueryResultBinder.h 2008-08-20 18:59:02 UTC (rev 794) @@ -45,7 +45,7 @@ static PyObject* repr(PyObject *self); /// creates a python object representation of the link query result - static PyObject* create(LinkQueryResultPtr result); + static PyObject* create(const LinkQueryResultPtr& result); protected: /// Return self as iterator with a increased ref count. Modified: trunk/src/bindings/RelationBinder.cpp =================================================================== --- trunk/src/bindings/RelationBinder.cpp 2008-08-20 18:57:02 UTC (rev 793) +++ trunk/src/bindings/RelationBinder.cpp 2008-08-20 18:59:02 UTC (rev 794) @@ -250,7 +250,7 @@ } // ------------------------------------------ - PyObject* RelationBinder::create(RelationPtr relation) { + PyObject* RelationBinder::create(const RelationPtr& relation) { Object* object = construct(&msType); if (object != NULL) { Modified: trunk/src/bindings/RelationBinder.h =================================================================== --- trunk/src/bindings/RelationBinder.h 2008-08-20 18:57:02 UTC (rev 793) +++ trunk/src/bindings/RelationBinder.h 2008-08-20 18:59:02 UTC (rev 794) @@ -46,7 +46,7 @@ static PyObject* repr(PyObject *self); /// creates a python object representation of the relation - static PyObject* create(RelationPtr relation); + static PyObject* create(const RelationPtr& relation); // --- Methods --- static PyObject* getID(PyObject* self, PyObject* args); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |