summaryrefslogtreecommitdiff
authorzecke <zecke>2004-02-19 02:08:16 (UTC)
committer zecke <zecke>2004-02-19 02:08:16 (UTC)
commitfd12f140cefd20ff7658b695c657c3a6a838da19 (patch) (side-by-side diff)
treeb5f44bdb1e1102888580e57eeb97d11a65d6a236
parent34e732b3490bcad2cb05a1252ef5f06b3feef9ad (diff)
downloadopie-fd12f140cefd20ff7658b695c657c3a6a838da19.zip
opie-fd12f140cefd20ff7658b695c657c3a6a838da19.tar.gz
opie-fd12f140cefd20ff7658b695c657c3a6a838da19.tar.bz2
Add API comment about inline dtor
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opiecore/oconfig.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libopie2/opiecore/oconfig.h b/libopie2/opiecore/oconfig.h
index 444d280..becf70d 100644
--- a/libopie2/opiecore/oconfig.h
+++ b/libopie2/opiecore/oconfig.h
@@ -111,30 +111,31 @@ class OConfigGroupSaver
/**
* Constructor.
* Create the object giving a @config object and a @a group to become
* the current group.
*/
OConfigGroupSaver( OConfig* config, QString group ) :_config(config), _oldgroup(config->group() )
{ _config->setGroup( group ); }
OConfigGroupSaver( OConfig* config, const char *group ) :_config(config), _oldgroup(config->group())
{ _config->setGroup( group ); }
OConfigGroupSaver( OConfig* config, const QCString &group ) : _config(config), _oldgroup(config->group())
{ _config->setGroup( group ); }
/**
* Destructor.
* Restores the last current group.
+ * @todo make it not inline for bc reasons. See KDE BC guide
*/
~OConfigGroupSaver() { _config->setGroup( _oldgroup ); }
OConfig* config() { return _config; };
private:
OConfig* _config;
QString _oldgroup;
OConfigGroupSaver( const OConfigGroupSaver& );
OConfigGroupSaver& operator=( const OConfigGroupSaver& );
};
#endif // OCONFIG_H