Revision 1210492
Go back to digest for 2nd January 2011Optimization in Educational
Peter Kümmel committed changes in /branches/work/kst/portto4/kst:
Start port to QSharedPointer:
- the current live time handling is no standard C++ idiom
- implementing a shared pointer is legacy code from KDE 3
- QSharedPointer is a bullet proofed Qt class
- better encapsulation: objects should not know how they are stored (remove inheritance from Shared)
- define KST_USE_QSHAREDPOINTER in sharedptr.h to enable new code
One problem is the pointer -> SharedPointer transition, because mostly there exists already
a QSharedPointer for the object Qt asserts. Could be solved with a consequent usage of shared pointers.
Don't know why raw pointers are used.
File Changes
Modified 32 files
- /branches/work/kst/portto4/kst
- /devel-docs/Kst2Specs/Wishlist
- /src/libkst/datamatrix.cpp
- /src/libkst/datamatrix.h
- /src/libkst/dataplugin.h
- /src/libkst/datavector.cpp
- /src/libkst/datavector.h
- /src/libkst/matrix.h
- /src/libkst/object.cpp
- /src/libkst/object.h
- /src/libkst/objectstore.h
- /src/libkst/primitive.h
- /src/libkst/sharedptr.h
- /src/libkst/timezones.h
- /src/libkst/vector.h
- /src/libkstmath/basicplugin.h
- /src/libkstmath/csd.h
- /src/libkstmath/curve.h
- /src/libkstmath/curvehint.cpp
- /src/libkstmath/curvehint.h
- /src/libkstmath/dataobject.cpp
- /src/libkstmath/dataobject.h
- /src/libkstmath/equation.h
- /src/libkstmath/eventmonitorentry.h
- /src/libkstmath/histogram.h
- /src/libkstmath/image.h
- /src/libkstmath/psd.h
- /src/libkstmath/relation.cpp
- /src/widgets/matrixselector.cpp
- /src/widgets/scalarselector.cpp
- /src/widgets/stringselector.cpp
- /src/widgets/vectorselector.cpp
- /src/plugins/filters/cumulativesum/cumulativesum.h
32 files changed in total