summaryrefslogtreecommitdiff
path: root/libreofficekit/qa/tilebench/tilebench.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'libreofficekit/qa/tilebench/tilebench.cxx')
-rw-r--r--libreofficekit/qa/tilebench/tilebench.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/libreofficekit/qa/tilebench/tilebench.cxx b/libreofficekit/qa/tilebench/tilebench.cxx
index e72c730a6dfe..20777de49fe1 100644
--- a/libreofficekit/qa/tilebench/tilebench.cxx
+++ b/libreofficekit/qa/tilebench/tilebench.cxx
@@ -42,7 +42,7 @@ int main( int argc, char* argv[] )
const char *mpName;
double mfTime;
- TimeRecord() : mpName(NULL), mfTime(getTimeNow()) { }
+ TimeRecord() : mpName(nullptr), mfTime(getTimeNow()) { }
explicit TimeRecord(const char *pName) :
mpName(pName ), mfTime(getTimeNow()) { }
};
@@ -62,7 +62,7 @@ int main( int argc, char* argv[] )
Office *pOffice = lok_cpp_init(argv[1]);
aTimes.push_back(TimeRecord());
- if (argv[2] != NULL)
+ if (argv[2] != nullptr)
{
aTimes.push_back(TimeRecord("load document"));
Document *pDocument(pOffice->documentLoad(argv[2]));
@@ -157,7 +157,7 @@ int main( int argc, char* argv[] )
{
double nDelta = aTimes[i+1].mfTime - aTimes[i].mfTime;
fprintf (stderr, " %s - %2.4f(ms)\n", aTimes[i].mpName, nDelta * 1000.0);
- if (aTimes[i+1].mpName == NULL)
+ if (aTimes[i+1].mpName == nullptr)
i++; // skip it.
nTotal += nDelta;
}