[Kst] kdeextragear-2/kst/kst

George Staikos staikos at kde.org
Tue Jun 15 23:02:14 CEST 2004


CVS commit by staikos: 

don't return references to local variables


  M +3 -3      kstiface.h   1.17
  M +3 -3      kstiface_impl.cpp   1.30
  M +3 -3      kstiface_impl.h   1.17


--- kdeextragear-2/kst/kst/kstiface.h  #1.16:1.17
@@ -78,7 +78,7 @@ k_dcop:
   virtual bool printPostScript(const QString& filename) = 0;
 
-  virtual const QString& createWindow(const QString& name) = 0;
-  virtual const QString& createPlot(const QString& window, const QString& name) = 0;
-  virtual const QString& createPlot(const QString& name) = 0;
+  virtual QString createWindow(const QString& name) = 0;
+  virtual QString createPlot(const QString& window, const QString& name) = 0;
+  virtual QString createPlot(const QString& name) = 0;
   virtual bool deletePlot(const QString& name) = 0;
   virtual bool deletePlot(const QString& window, const QString& name) = 0;

--- kdeextragear-2/kst/kst/kstiface_impl.cpp  #1.29:1.30
@@ -522,5 +522,5 @@ bool KstIfaceImpl::clearVector(const QSt
 
 
-const QString& KstIfaceImpl::createWindow(const QString& name) {
+QString KstIfaceImpl::createWindow(const QString& name) {
   QString nameUsed;
 
@@ -531,5 +531,5 @@ const QString& KstIfaceImpl::createWindo
 
 
-const QString& KstIfaceImpl::createPlot(const QString& name) {
+QString KstIfaceImpl::createPlot(const QString& name) {
   QString window;
   QString newName;
@@ -544,5 +544,5 @@ const QString& KstIfaceImpl::createPlot(
 
 
-const QString& KstIfaceImpl::createPlot(const QString& window, const QString& name) {
+QString KstIfaceImpl::createPlot(const QString& window, const QString& name) {
   KMdiChildView*    pWindow;
   KstViewWindow*    pView;

--- kdeextragear-2/kst/kst/kstiface_impl.h  #1.16:1.17
@@ -71,7 +71,7 @@ public:
   virtual bool printPostScript(const QString& filename);
 
-  virtual const QString& createWindow(const QString& name);
-  virtual const QString& createPlot(const QString& window, const QString& name);
-  virtual const QString& createPlot(const QString& name);
+  virtual QString createWindow(const QString& name);
+  virtual QString createPlot(const QString& window, const QString& name);
+  virtual QString createPlot(const QString& name);
   virtual bool deletePlot(const QString& name);
   virtual bool deletePlot(const QString& window, const QString& name);





More information about the Kst mailing list