summaryrefslogtreecommitdiffstats
path: root/gentoo/trinity-base/ksim/files/fix_crash.patch
blob: 1e6a810dda5871a6146434f085f1c5063e9c18f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
diff --git a/ksim/library/pluginglobal.cpp b/ksim/library/pluginglobal.cpp
index 34a38c3..5f523cc 100644
--- a/ksim/library/pluginglobal.cpp
+++ b/ksim/library/pluginglobal.cpp
@@ -155,7 +155,7 @@ bool KSim::Plugin::isNull() const
   return !d;
 }
 
-const TQString &KSim::Plugin::name() const
+TQString KSim::Plugin::name() const
 {
   return d ? d->name : TQString();
 }
@@ -170,7 +170,7 @@ TQCString KSim::Plugin::libName() const
   return d ? d->libName : TQCString();
 }
 
-const TQString &KSim::Plugin::fileName() const
+TQString KSim::Plugin::fileName() const
 {
   return d ? d->filename : TQString();
 }
diff --git a/ksim/library/pluginglobal.h b/ksim/library/pluginglobal.h
index 5dbeef8..e094198 100644
--- a/ksim/library/pluginglobal.h
+++ b/ksim/library/pluginglobal.h
@@ -93,7 +93,7 @@ namespace KSim
        * @return the name of the plugin, NOT the library name
        * @see #libName
        */
-      const TQString &name() const;
+      TQString name() const;
       /**
        * @return the icon of the plugin
        */
@@ -105,7 +105,7 @@ namespace KSim
       /**
        * @return path to the .desktop file
        */
-      const TQString &fileName() const;
+      TQString fileName() const;
       /**
        * @return the plugin object
        */