summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohann Latocha2010-08-26 22:58:37 +0200
committerJohann Latocha2010-08-26 22:58:37 +0200
commitc544ec75d2314160f5591aab966a77ead26697d7 (patch)
treef04d5a58b42fb8611c291276bd4df5088445c5fb
parentDefect #746 (diff)
downloadpvs-c544ec75d2314160f5591aab966a77ead26697d7.tar.gz
pvs-c544ec75d2314160f5591aab966a77ead26697d7.tar.xz
pvs-c544ec75d2314160f5591aab966a77ead26697d7.zip
Some refactoring
-rwxr-xr-xCMakeLists.txt4
-rw-r--r--src/net/pvsServiceBroadcast.cpp10
-rw-r--r--src/version.h4
3 files changed, 7 insertions, 11 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index d2eae17..2ac01c9 100755
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -11,8 +11,8 @@ CMAKE_MINIMUM_REQUIRED( VERSION 2.6.2 )
# set compiler optimizations for debug and release
SET(CMAKE_BUILD_TYPE Debug)
SET(CMAKE_CXX_FLAGS_DEBUG "-O0 -g -Wall")
-SET(CMAKE_CXX_FLAGS_RELEASE "-O3 -march=native")
-# -DQT_NO_DEBUG_OUTPUT")
+SET(CMAKE_CXX_FLAGS_RELEASE "-O2" )
+#-march=native -DQT_NO_DEBUG_OUTPUT
# local cmake modules
SET(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR})
diff --git a/src/net/pvsServiceBroadcast.cpp b/src/net/pvsServiceBroadcast.cpp
index f68db56..46d287d 100644
--- a/src/net/pvsServiceBroadcast.cpp
+++ b/src/net/pvsServiceBroadcast.cpp
@@ -29,15 +29,11 @@ PVSServiceBroadcast::PVSServiceBroadcast()
_timer = 0;
_broadcaster.bind(SD_PORT_CONSOLE);
- QList<QNetworkInterface> interfaces = QNetworkInterface::allInterfaces ();
- foreach (QNetworkInterface interface, interfaces)
- {
- QList<QNetworkAddressEntry> entries = interface.addressEntries();
- foreach (QNetworkAddressEntry entry, entries) {
+ foreach (QNetworkInterface interface, QNetworkInterface::allInterfaces())
+ foreach (QNetworkAddressEntry entry, interface.addressEntries())
if (!entry.broadcast().isNull() && entry.broadcast().toString() != "127.255.255.255")
_everyone.append(entry.broadcast());
- }
- }
+
if (_everyone.isEmpty())
qDebug("ERROR: No broadcast address found");
}
diff --git a/src/version.h b/src/version.h
index ac24ac2..69a3bde 100644
--- a/src/version.h
+++ b/src/version.h
@@ -1,2 +1,2 @@
-#define VERSION_STRING "2.0.1.0"
-#define VERSION_NUMBER 2010
+#define VERSION_STRING "2.0.2.0"
+#define VERSION_NUMBER 2020