After r383466 building against wxgtk30 only worked with clang/libc++ because libstdc++ 4.2 in base lacks C++11 support while newer libstdc++ (from lang/gcc* or in base on DragonFly) requires explicit -std=c++11. Also, -std=c++11 on FreeBSD turns NULL into nullptr which sometimes breaks build. PR: 199916 Approved by: lightside <lightside@gmx.com> (maintainer)
11 lines
537 B
C++
11 lines
537 B
C++
--- code/apis/ProfileManager.cpp.orig 2015-01-28 04:29:37 UTC
|
|
+++ code/apis/ProfileManager.cpp
|
|
@@ -307,7 +307,7 @@ void ProMan::LoadNewsMapFromGlobalProfil
|
|
if (globalProfile->Read(GBL_CFG_NET_THE_NEWS, &theNews) &&
|
|
(globalProfile->Read(GBL_CFG_NET_NEWS_LAST_TIME, &lastDownloadNewsStr))) {
|
|
if ((!theNews.IsEmpty()) &&
|
|
- (NULL != lastDownloadNews.ParseFormat(
|
|
+ (0 != lastDownloadNews.ParseFormat(
|
|
lastDownloadNewsStr, NEWS_LAST_TIME_FORMAT))) {
|
|
newsMap[groupName] = NewsData(theNews, lastDownloadNews);
|
|
|