From 0007ea7a81133d50fc267eeed97ddf3c8e98481b Mon Sep 17 00:00:00 2001 From: Torsten Schulz Date: Wed, 17 Jun 2020 14:33:08 +0200 Subject: [PATCH] changed c++ version to c++20 --- .gitignore | 0 YourChat.pro | 40 ---------------------------------------- base.cpp | 0 base.h | 0 config.cpp | 0 config.h | 0 config/chatconfig.json | 0 main.cpp | 0 room.cpp | 0 room.h | 0 server.cpp | 0 server.h | 0 tools.cpp | 0 tools.h | 0 user.cpp | 1 - user.h | 0 16 files changed, 41 deletions(-) mode change 100644 => 100755 .gitignore mode change 100644 => 100755 YourChat.pro mode change 100644 => 100755 base.cpp mode change 100644 => 100755 base.h mode change 100644 => 100755 config.cpp mode change 100644 => 100755 config.h mode change 100644 => 100755 config/chatconfig.json mode change 100644 => 100755 main.cpp mode change 100644 => 100755 room.cpp mode change 100644 => 100755 room.h mode change 100644 => 100755 server.cpp mode change 100644 => 100755 server.h mode change 100644 => 100755 tools.cpp mode change 100644 => 100755 tools.h mode change 100644 => 100755 user.cpp mode change 100644 => 100755 user.h diff --git a/.gitignore b/.gitignore old mode 100644 new mode 100755 diff --git a/YourChat.pro b/YourChat.pro old mode 100644 new mode 100755 index 069c201..e69de29 --- a/YourChat.pro +++ b/YourChat.pro @@ -1,40 +0,0 @@ -TEMPLATE = app -CONFIG += console c++11 -CONFIG -= app_bundle -CONFIG -= qt -TARGET = yourchat - -QMAKE_CC = g++-7 -QMAKE_CXX = g++-7 -QMAKE_CXXFLAGS += -std=gnu++11 -g - -SOURCES += main.cpp \ - config.cpp \ - server.cpp \ - room.cpp \ - user.cpp \ - tools.cpp \ - base.cpp - -DISTFILES += \ - config/chatconfig.json - -HEADERS += \ - config.h \ - server.h \ - room.h \ - user.h \ - tools.h \ - base.h - -LIBS += -ljsoncpp \ - -lpthread - -bin.path = /opt/yourchat -bin.files += yourchat - -config.path = /etc/yourpart -config.files += config/chatconfig.json - -INSTALLS += bin \ - config diff --git a/base.cpp b/base.cpp old mode 100644 new mode 100755 diff --git a/base.h b/base.h old mode 100644 new mode 100755 diff --git a/config.cpp b/config.cpp old mode 100644 new mode 100755 diff --git a/config.h b/config.h old mode 100644 new mode 100755 diff --git a/config/chatconfig.json b/config/chatconfig.json old mode 100644 new mode 100755 diff --git a/main.cpp b/main.cpp old mode 100644 new mode 100755 diff --git a/room.cpp b/room.cpp old mode 100644 new mode 100755 diff --git a/room.h b/room.h old mode 100644 new mode 100755 diff --git a/server.cpp b/server.cpp old mode 100644 new mode 100755 diff --git a/server.h b/server.h old mode 100644 new mode 100755 diff --git a/tools.cpp b/tools.cpp old mode 100644 new mode 100755 diff --git a/tools.h b/tools.h old mode 100644 new mode 100755 diff --git a/user.cpp b/user.cpp old mode 100644 new mode 100755 index a1bba28..14648e1 --- a/user.cpp +++ b/user.cpp @@ -111,7 +111,6 @@ namespace Yc { if (jsonTree["token"].asString() != _token) { return; } - std::cout << jsonTree["type"].asString() << std::endl; if (jsonTree["type"].asString() == "message") { checkString(jsonTree["message"].asString()); } else if (jsonTree["type"].asString() == "dice") { diff --git a/user.h b/user.h old mode 100644 new mode 100755