FreeBSD Bugzilla – Attachment 179050 Details for
Bug 216052
comms/telldus-core: fails to build with clang 4.0
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
clang4 build patch
patch-service-SettingsConfuse.cpp (text/plain), 1.02 KB, created by
Johan Ström
on 2017-01-18 20:56:29 UTC
(
hide
)
Description:
clang4 build patch
Filename:
MIME Type:
Creator:
Johan Ström
Created:
2017-01-18 20:56:29 UTC
Size:
1.02 KB
patch
obsolete
>--- service/SettingsConfuse.cpp >+++ service/SettingsConfuse.cpp >@@ -17,6 +17,8 @@ > > class Settings::PrivateData { > public: >+ PrivateData() >+ : cfg(NULL), var_cfg(NULL) {} > cfg_t *cfg; > cfg_t *var_cfg; > }; >@@ -42,10 +44,10 @@ > */ > Settings::~Settings(void) { > TelldusCore::MutexLocker locker(&mutex); >- if (d->cfg > 0) { >+ if (d->cfg != 0) { > cfg_free(d->cfg); > } >- if (d->var_cfg > 0) { >+ if (d->var_cfg != 0) { > cfg_free(d->var_cfg); > } > delete d; >@@ -56,7 +58,7 @@ > */ > std::wstring Settings::getSetting(const std::wstring &strName) const { > TelldusCore::MutexLocker locker(&mutex); >- if (d->cfg > 0) { >+ if (d->cfg != 0) { > std::string setting(cfg_getstr(d->cfg, TelldusCore::wideToString(strName).c_str())); > return TelldusCore::charToWstring(setting.c_str()); > } >@@ -68,7 +70,7 @@ > */ > int Settings::getNumberOfNodes(Node node) const { > TelldusCore::MutexLocker locker(&mutex); >- if (d->cfg > 0) { >+ if (d->cfg != 0) { > if (node == Device) { > return cfg_size(d->cfg, "device"); > } else if (node == Controller) {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
johan
:
maintainer-approval+
Actions:
View
|
Diff
Attachments on
bug 216052
: 179050 |
179051