Skip to content

Commit c9fd393

Browse files
committed
Update WebServer example for 9ab612f
1 parent 52e8345 commit c9fd393

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

WebServer/WebServer.pro

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,11 @@ CONFIG += console
1111
CONFIG -= app_bundle
1212

1313
# C++14 or higher version is required.
14-
CONFIG += c++14
15-
QMAKE_CXXFLAGS += -std=c++14
14+
# CONFIG += c++14
15+
# QMAKE_CXXFLAGS += -std=c++14
16+
# C++17 or higher version is required.
17+
CONFIG += c++17
18+
QMAKE_CXXFLAGS += -std=c++17
1619

1720
macx {
1821
QMAKE_CXXFLAGS += -stdlib=libc++

WebServer/main.cpp

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,16 @@ bool loadXlsx(QString fileName, QString& strHtml)
133133
int row = cl.row - 1;
134134
int col = cl.col - 1;
135135

136-
QSharedPointer<Cell> ptrCell = cl.cell; // cell pointer
136+
// Update ShowConsole example for 9ab612f
137+
// {{
138+
// QSharedPointer<Cell> ptrCell = cl.cell; // cell pointer
139+
std::shared_ptr<Cell> ptrCell = cl.cell; // cell pointer
137140

138141
// value of cell
139-
QVariant var = cl.cell.data()->value();
142+
// QVariant var = cl.cell.data()->value();
143+
QVariant var = ptrCell->value();
144+
// }}
145+
140146
QString str = var.toString();
141147

142148
cellValues[row][col] = str;

0 commit comments

Comments
 (0)