summaryrefslogtreecommitdiff
path: root/fofi
diff options
context:
space:
mode:
authorAlbert Astals Cid <aacid@kde.org>2018-09-23 01:54:47 +0200
committerAlbert Astals Cid <aacid@kde.org>2018-09-23 01:54:47 +0200
commitd1104f9d7a5e86b80244d0627562fe832d5bcd4b (patch)
tree1553e4aab33b4286e31ed94e80c5bd6520e009fa /fofi
parent8a845c65e0dc290af920ce4175689f7321e1d459 (diff)
Don't cast nullptr
Doesn't make any sense
Diffstat (limited to 'fofi')
-rw-r--r--fofi/FoFiType1.cc2
-rw-r--r--fofi/FoFiType1C.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/fofi/FoFiType1.cc b/fofi/FoFiType1.cc
index a5d73e0e..889ea111 100644
--- a/fofi/FoFiType1.cc
+++ b/fofi/FoFiType1.cc
@@ -349,7 +349,7 @@ void FoFiType1::parse() {
if ((p2 = strchr(p, ']'))) {
*p2 = '\0';
for (j = 0; j < 6; ++j) {
- if ((p = strtok(j == 0 ? p : (char *)nullptr, " \t\n\r"))) {
+ if ((p = strtok(j == 0 ? p : nullptr, " \t\n\r"))) {
fontMatrix[j] = atof(p);
} else {
break;
diff --git a/fofi/FoFiType1C.cc b/fofi/FoFiType1C.cc
index 8b632c44..52f9f5bb 100644
--- a/fofi/FoFiType1C.cc
+++ b/fofi/FoFiType1C.cc
@@ -114,7 +114,7 @@ FoFiType1C::~FoFiType1C() {
}
const char *FoFiType1C::getName() const {
- return name ? name->getCString() : (char *)nullptr;
+ return name ? name->getCString() : nullptr;
}
char **FoFiType1C::getEncoding() const {