aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Szymon Tomasz Stefanek2008-08-05 01:12:29 +0000
committerGravatar Szymon Tomasz Stefanek2008-08-05 01:12:29 +0000
commit3988445f54df38de83d3d99a01e0f244bbfd7fc2 (patch)
treecb34061d899f95c841e3b755c18c42e3b5e37f1b
parentupdated italian translation (diff)
downloadKVIrc-3988445f54df38de83d3d99a01e0f244bbfd7fc2.tar.gz
KVIrc-3988445f54df38de83d3d99a01e0f244bbfd7fc2.tar.bz2
KVIrc-3988445f54df38de83d3d99a01e0f244bbfd7fc2.zip
A trivial change that maybe fixes a compilation warning
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@2188 17fca916-40b9-46aa-a4ea-0a15b648b75c
-rw-r--r--src/kvilib/core/kvi_pointerhashtable.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/kvilib/core/kvi_pointerhashtable.h b/src/kvilib/core/kvi_pointerhashtable.h
index 82e2e345a..8cdb27ab5 100644
--- a/src/kvilib/core/kvi_pointerhashtable.h
+++ b/src/kvilib/core/kvi_pointerhashtable.h
@@ -954,7 +954,9 @@ public:
///
const Key & currentKey() const
{
- return m_pIterator ? m_pIterator->current()->key() : kvi_hash_key_default(((Key *)NULL));
+ if(m_pIterator)
+ return m_pIterator->current()->key();
+ return kvi_hash_key_default(((Key *)NULL));
}
///