1 From fa14938321eda39f16bee6068296e6abc9df7b85 Mon Sep 17 00:00:00 2001
2 From: Jonas Gorski <jonas.gorski+openwrt@gmail.com>
3 Date: Wed, 6 Apr 2011 04:11:48 +0200
4 Subject: [PATCH] Add a uClibc++ build workaround
7 modules/webadmin.cpp | 4 +++-
8 1 files changed, 3 insertions(+), 1 deletions(-)
10 --- a/modules/webadmin.cpp
11 +++ b/modules/webadmin.cpp
13 #include "WebModules.h"
14 #include "ZNCString.h"
20 using std::stringstream;
24 /* Stuff to be able to write this:
25 // i will be name of local variable, see below
26 @@ -58,7 +60,7 @@ class CWebAdminMod : public CGlobalModul
28 GLOBALMODCONSTRUCTOR(CWebAdminMod) {
30 - vParams.push_back(make_pair("user", ""));
31 + vParams.push_back(make_pair((string)"user", (string)""));
32 AddSubPage(new CWebSubPage("settings", "Global Settings", CWebSubPage::F_ADMIN));
33 AddSubPage(new CWebSubPage("edituser", "Your Settings", vParams));
34 AddSubPage(new CWebSubPage("traffic", "Traffic Info", CWebSubPage::F_ADMIN));