diff options
author | simonb <simonb> | 2007-08-04 18:15:58 (GMT) |
---|---|---|
committer | simonb <simonb> | 2007-08-04 18:15:58 (GMT) |
commit | 288dfa6eb9503a91884425e966083ca087040760 (patch) | |
tree | 055ef1b6f1d32dfec312900ab2b3c38e861e07a6 /src/FbTk/XrmDatabaseHelper.hh | |
parent | dcf5e6803456149f651370e96e1e5224eace46e2 (diff) | |
download | fluxbox_lack-288dfa6eb9503a91884425e966083ca087040760.zip fluxbox_lack-288dfa6eb9503a91884425e966083ca087040760.tar.bz2 |
only possible anomaly I can see here
Diffstat (limited to 'src/FbTk/XrmDatabaseHelper.hh')
-rw-r--r-- | src/FbTk/XrmDatabaseHelper.hh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/FbTk/XrmDatabaseHelper.hh b/src/FbTk/XrmDatabaseHelper.hh index 6c8acb0..7ad512d 100644 --- a/src/FbTk/XrmDatabaseHelper.hh +++ b/src/FbTk/XrmDatabaseHelper.hh | |||
@@ -48,6 +48,9 @@ public: | |||
48 | 48 | ||
49 | /// assignment operator | 49 | /// assignment operator |
50 | XrmDatabaseHelper& operator=(const XrmDatabase& database) { | 50 | XrmDatabaseHelper& operator=(const XrmDatabase& database) { |
51 | if (database == m_database) // assignment to self | ||
52 | return *this; | ||
53 | |||
51 | if (m_database!=0) | 54 | if (m_database!=0) |
52 | close(); | 55 | close(); |
53 | m_database = database; | 56 | m_database = database; |