@@ -183,11 +183,7 @@ auto ExportUtil::getContestantHtmlCode(Contest *contest, Contestant *contestant,
183
183
" border-color: #ccc;\" >" ;
184
184
185
185
if (timeUsed[j][k] != -1 ) {
186
- #if QT_VERSION >= QT_VERSION_CHECK(5, 5, 0)
187
186
htmlCode += QString (" " ).asprintf (" %.3lf s" , double (timeUsed[j][k]) / 1000 );
188
- #else
189
- htmlCode += QString (" " ).sprintf (" %.3lf s" , double (timeUsed[j][k]) / 1000 );
190
- #endif
191
187
} else {
192
188
htmlCode += tr (" Invalid" );
193
189
}
@@ -197,11 +193,7 @@ auto ExportUtil::getContestantHtmlCode(Contest *contest, Contestant *contestant,
197
193
" border-color: #ccc;\" >" ;
198
194
199
195
if (memoryUsed[j][k] != -1 ) {
200
- #if QT_VERSION >= QT_VERSION_CHECK(5, 5, 0)
201
196
htmlCode += QString (" " ).asprintf (" %.3lf MB" , double (memoryUsed[j][k]) / 1024 / 1024 );
202
- #else
203
- htmlCode += QString (" " ).sprintf (" %.3lf MB" , double (memoryUsed[j][k]) / 1024 / 1024 );
204
- #endif
205
197
} else {
206
198
htmlCode += tr (" Invalid" );
207
199
}
@@ -540,11 +532,7 @@ auto ExportUtil::getSmallerContestantHtmlCode(Contest *contest, Contestant *cont
540
532
htmlCode += " <td>" ;
541
533
542
534
if (timeUsed[j][k] != -1 ) {
543
- #if QT_VERSION >= QT_VERSION_CHECK(5, 5, 0)
544
535
htmlCode += QString (" " ).asprintf (" %.3lf s" , double (timeUsed[j][k]) / 1000 );
545
- #else
546
- htmlCode += QString (" " ).sprintf (" %.3lf s" , double (timeUsed[j][k]) / 1000 );
547
- #endif
548
536
} else {
549
537
htmlCode += tr (" Invalid" );
550
538
}
@@ -553,11 +541,7 @@ auto ExportUtil::getSmallerContestantHtmlCode(Contest *contest, Contestant *cont
553
541
htmlCode += " <td>" ;
554
542
555
543
if (memoryUsed[j][k] != -1 ) {
556
- #if QT_VERSION >= QT_VERSION_CHECK(5, 5, 0)
557
544
htmlCode += QString (" " ).asprintf (" %.3lf MB" , double (memoryUsed[j][k]) / 1024 / 1024 );
558
- #else
559
- htmlCode += QString (" " ).sprintf (" %.3lf MB" , double (memoryUsed[j][k]) / 1024 / 1024 );
560
- #endif
561
545
} else {
562
546
htmlCode += tr (" Invalid" );
563
547
}
0 commit comments