File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ int main(int argc, char *argv[])
3030
3131 if ( argc != 2 )
3232 {
33- std::cout << " [Usage] ShowConsole *.xlsx" ;
33+ std::cout << " [Usage] ShowConsole *.xlsx" << std::endl ;
3434 return 0 ;
3535 }
3636
@@ -93,10 +93,16 @@ int main(int argc, char *argv[])
9393 int row = cl.row - 1 ;
9494 int col = cl.col - 1 ;
9595
96- QSharedPointer<Cell> ptrCell = cl.cell ; // cell pointer
96+ // https://github.com/QtExcel/QXlsx/commit/9ab612ff5c9defc35333799c55b01be31aa66fc2
97+ // {{
98+ // QSharedPointer<Cell> ptrCell = cl.cell; // cell pointer
99+ std::shared_ptr<Cell> ptrCell = cl.cell ; // cell pointer
97100
98101 // value of cell
99- QVariant var = cl.cell .data ()->value ();
102+ // QVariant var = cl.cell.data()->value();
103+ QVariant var = ptrCell->value ();
104+ // }}
105+
100106 QString str = var.toString ();
101107
102108 cellValues[row][col] = str;
You can’t perform that action at this time.
0 commit comments