Fix ksim crash. This resolves bug report 1322.

(cherry picked from commit 4ed913cf62)
v3.5.13-sru
Fat-Zer 11 years ago committed by Slávek Banko
parent 63d18453b7
commit 4d2eaac523

@ -155,7 +155,7 @@ bool KSim::Plugin::isNull() const
return !d; return !d;
} }
const TQString &KSim::Plugin::name() const TQString KSim::Plugin::name() const
{ {
return d ? d->name : TQString(); return d ? d->name : TQString();
} }
@ -170,7 +170,7 @@ TQCString KSim::Plugin::libName() const
return d ? d->libName : TQCString(); return d ? d->libName : TQCString();
} }
const TQString &KSim::Plugin::fileName() const TQString KSim::Plugin::fileName() const
{ {
return d ? d->filename : TQString(); return d ? d->filename : TQString();
} }

@ -93,7 +93,7 @@ namespace KSim
* @return the name of the plugin, NOT the library name * @return the name of the plugin, NOT the library name
* @see #libName * @see #libName
*/ */
const TQString &name() const; TQString name() const;
/** /**
* @return the icon of the plugin * @return the icon of the plugin
*/ */
@ -105,7 +105,7 @@ namespace KSim
/** /**
* @return path to the .desktop file * @return path to the .desktop file
*/ */
const TQString &fileName() const; TQString fileName() const;
/** /**
* @return the plugin object * @return the plugin object
*/ */

Loading…
Cancel
Save