summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-22 01:09:09 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-22 01:09:09 +0000
commit682bf3bfdcbcbb1fca85e8a36ed03e062e0555d5 (patch)
tree707147f79b50fd93a151422d254314b128dc5958
parent856eea7169f7a4605aed28392857e6c5c80c644c (diff)
downloadtdelibs-682bf3bfdcbcbb1fca85e8a36ed03e062e0555d5.tar.gz
tdelibs-682bf3bfdcbcbb1fca85e8a36ed03e062e0555d5.zip
Repair syntax error that snuck in
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1152788 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
-rw-r--r--dnssd/domainbrowser.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/dnssd/domainbrowser.cpp b/dnssd/domainbrowser.cpp
index 69bde48fe..f1c570e6a 100644
--- a/dnssd/domainbrowser.cpp
+++ b/dnssd/domainbrowser.cpp
@@ -27,9 +27,11 @@
#include "query.h"
#include "servicebrowser.h"
#include <kapplication.h>
+#ifdef HAVE_DNSSD
#ifdef AVAHI_API_0_6
#include <avahi-client/lookup.h>
#endif
+#endif
namespace DNSSD
{
@@ -48,11 +50,11 @@ void domains_callback(AvahiDomainBrowser*, AvahiIfIndex, AvahiProtocol, AvahiBr
class DomainBrowserPrivate
{
public:
- DomainBrowserPrivate(DomainBrowser* owner) : m_browseLAN(false), m_started(false)
#ifdef HAVE_DNSSD
- , m_browser(0), m_owner(owner)
+ DomainBrowserPrivate(DomainBrowser* owner) : m_browseLAN(false), m_started(false), m_browser(0), m_owner(owner) {}
+#else
+ DomainBrowserPrivate(DomainBrowser* owner) : m_browseLAN(false), m_started(false) {}
#endif
- {}
#ifdef HAVE_DNSSD
~DomainBrowserPrivate() { if (m_browser) avahi_domain_browser_free(m_browser); }
#endif