diff --git a/WebServer/WebServer.pro b/WebServer/WebServer.pro index ce28918b..97757287 100644 --- a/WebServer/WebServer.pro +++ b/WebServer/WebServer.pro @@ -11,8 +11,11 @@ CONFIG += console CONFIG -= app_bundle # C++14 or higher version is required. -CONFIG += c++14 -QMAKE_CXXFLAGS += -std=c++14 +# CONFIG += c++14 +# QMAKE_CXXFLAGS += -std=c++14 +# C++17 or higher version is required. +CONFIG += c++17 +QMAKE_CXXFLAGS += -std=c++17 macx { QMAKE_CXXFLAGS += -stdlib=libc++ diff --git a/WebServer/main.cpp b/WebServer/main.cpp index 6869e797..c2e54802 100644 --- a/WebServer/main.cpp +++ b/WebServer/main.cpp @@ -133,10 +133,16 @@ bool loadXlsx(QString fileName, QString& strHtml) int row = cl.row - 1; int col = cl.col - 1; - QSharedPointer ptrCell = cl.cell; // cell pointer + // Update ShowConsole example for 9ab612f + // {{ + // QSharedPointer ptrCell = cl.cell; // cell pointer + std::shared_ptr ptrCell = cl.cell; // cell pointer // value of cell - QVariant var = cl.cell.data()->value(); + // QVariant var = cl.cell.data()->value(); + QVariant var = ptrCell->value(); + // }} + QString str = var.toString(); cellValues[row][col] = str;