From 682bf3bfdcbcbb1fca85e8a36ed03e062e0555d5 Mon Sep 17 00:00:00 2001 From: tpearson Date: Thu, 22 Jul 2010 01:09:09 +0000 Subject: Repair syntax error that snuck in git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1152788 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- dnssd/domainbrowser.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'dnssd') 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 +#ifdef HAVE_DNSSD #ifdef AVAHI_API_0_6 #include #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 -- cgit v1.2.1