[dasher: 66/217] Enable C++11 in CXXFLAGS and use valid C++11 foreach syntax
- From: Patrick Welche <pwelche src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dasher: 66/217] Enable C++11 in CXXFLAGS and use valid C++11 foreach syntax
- Date: Sat, 27 Feb 2016 12:05:52 +0000 (UTC)
commit c7adb623f857ca0e91d6b59fd8e7d8429d72fd04
Author: David Barnett <dbarnett google com>
Date: Wed Oct 14 15:59:39 2015 -0700
Enable C++11 in CXXFLAGS and use valid C++11 foreach syntax
Src/DasherCore/ControlManager.cpp | 2 +-
configure.ac | 1 +
2 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/Src/DasherCore/ControlManager.cpp b/Src/DasherCore/ControlManager.cpp
index 855ad79..4587ab2 100644
--- a/Src/DasherCore/ControlManager.cpp
+++ b/Src/DasherCore/ControlManager.cpp
@@ -375,7 +375,7 @@ CControlBase::Action *CControlManager::parseAction(const XML_Char *name, const X
// Key in actions map is name plus arguments in alphabetical order.
key << name;
if (!arguments.empty()) {
- for each (auto arg in arguments) {
+ for (auto arg : arguments) {
key << " " << arg.first << "=" << arg.second;
}
}
diff --git a/configure.ac b/configure.ac
index 9ffd70e..00d938b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -41,6 +41,7 @@ AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Gettext package])
AM_GLIB_GNU_GETTEXT
+CXXFLAGS="$CXXFLAGS -std=c++0x"
AC_PROG_CXX
AC_PROG_LD_GNU
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]