diff options
author | Fat-Zer <> | 2013-03-02 22:54:28 -0600 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2013-03-26 02:40:58 +0100 |
commit | 4d2eaac52398d2ddbe20e4ae25dda6d204180e6c (patch) | |
tree | 5041dc6d5b3975b363db4018249c50a23aaf07c6 /ksim | |
parent | 63d18453b7d2de671655463c02d9f7f16302c7a3 (diff) | |
download | tdeutils-4d2eaac52398d2ddbe20e4ae25dda6d204180e6c.tar.gz tdeutils-4d2eaac52398d2ddbe20e4ae25dda6d204180e6c.zip |
Fix ksim crash. This resolves bug report 1322.
(cherry picked from commit 4ed913cf623968d71642c3d7fd556c2a712cfa69)
Diffstat (limited to 'ksim')
-rw-r--r-- | ksim/library/pluginglobal.cpp | 4 | ||||
-rw-r--r-- | ksim/library/pluginglobal.h | 4 |
2 files changed, 4 insertions, 4 deletions
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 */ |