author | zecke <zecke> | 2004-02-19 02:08:16 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-02-19 02:08:16 (UTC) |
commit | fd12f140cefd20ff7658b695c657c3a6a838da19 (patch) (unidiff) | |
tree | b5f44bdb1e1102888580e57eeb97d11a65d6a236 /libopie2 | |
parent | 34e732b3490bcad2cb05a1252ef5f06b3feef9ad (diff) | |
download | opie-fd12f140cefd20ff7658b695c657c3a6a838da19.zip opie-fd12f140cefd20ff7658b695c657c3a6a838da19.tar.gz opie-fd12f140cefd20ff7658b695c657c3a6a838da19.tar.bz2 |
Add API comment about inline dtor
-rw-r--r-- | libopie2/opiecore/oconfig.h | 1 |
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 | |||
111 | /** | 111 | /** |
112 | * Constructor. | 112 | * Constructor. |
113 | * Create the object giving a @config object and a @a group to become | 113 | * Create the object giving a @config object and a @a group to become |
114 | * the current group. | 114 | * the current group. |
115 | */ | 115 | */ |
116 | OConfigGroupSaver( OConfig* config, QString group ) :_config(config), _oldgroup(config->group() ) | 116 | OConfigGroupSaver( OConfig* config, QString group ) :_config(config), _oldgroup(config->group() ) |
117 | { _config->setGroup( group ); } | 117 | { _config->setGroup( group ); } |
118 | 118 | ||
119 | OConfigGroupSaver( OConfig* config, const char *group ) :_config(config), _oldgroup(config->group()) | 119 | OConfigGroupSaver( OConfig* config, const char *group ) :_config(config), _oldgroup(config->group()) |
120 | { _config->setGroup( group ); } | 120 | { _config->setGroup( group ); } |
121 | 121 | ||
122 | OConfigGroupSaver( OConfig* config, const QCString &group ) : _config(config), _oldgroup(config->group()) | 122 | OConfigGroupSaver( OConfig* config, const QCString &group ) : _config(config), _oldgroup(config->group()) |
123 | { _config->setGroup( group ); } | 123 | { _config->setGroup( group ); } |
124 | /** | 124 | /** |
125 | * Destructor. | 125 | * Destructor. |
126 | * Restores the last current group. | 126 | * Restores the last current group. |
127 | * @todo make it not inline for bc reasons. See KDE BC guide | ||
127 | */ | 128 | */ |
128 | ~OConfigGroupSaver() { _config->setGroup( _oldgroup ); } | 129 | ~OConfigGroupSaver() { _config->setGroup( _oldgroup ); } |
129 | 130 | ||
130 | OConfig* config() { return _config; }; | 131 | OConfig* config() { return _config; }; |
131 | 132 | ||
132 | private: | 133 | private: |
133 | OConfig* _config; | 134 | OConfig* _config; |
134 | QString _oldgroup; | 135 | QString _oldgroup; |
135 | 136 | ||
136 | OConfigGroupSaver( const OConfigGroupSaver& ); | 137 | OConfigGroupSaver( const OConfigGroupSaver& ); |
137 | OConfigGroupSaver& operator=( const OConfigGroupSaver& ); | 138 | OConfigGroupSaver& operator=( const OConfigGroupSaver& ); |
138 | }; | 139 | }; |
139 | 140 | ||
140 | #endif // OCONFIG_H | 141 | #endif // OCONFIG_H |