diff options
-rw-r--r-- | poppler/Object.h | 4 | ||||
-rw-r--r-- | utils/pdftocairo.cc | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/poppler/Object.h b/poppler/Object.h index a2996248..15bea159 100644 --- a/poppler/Object.h +++ b/poppler/Object.h @@ -45,14 +45,14 @@ #define OBJECT_TYPE_CHECK(wanted_type) \ if (unlikely(type != wanted_type)) { \ - error(errInternal, 0, (char *) "Call to Object where the object was type {0:d}, " \ + error(errInternal, 0, "Call to Object where the object was type {0:d}, " \ "not the expected type {1:d}", type, wanted_type); \ abort(); \ } #define OBJECT_3TYPES_CHECK(wanted_type1, wanted_type2, wanted_type3) \ if (unlikely(type != wanted_type1) && unlikely(type != wanted_type2) && unlikely(type != wanted_type3)) { \ - error(errInternal, 0, (char *) "Call to Object where the object was type {0:d}, " \ + error(errInternal, 0, "Call to Object where the object was type {0:d}, " \ "not the expected type {1:d}, {2:d} or {3:d}", type, wanted_type1, wanted_type2, wanted_type3); \ abort(); \ } diff --git a/utils/pdftocairo.cc b/utils/pdftocairo.cc index 6c677bda..f67007f7 100644 --- a/utils/pdftocairo.cc +++ b/utils/pdftocairo.cc @@ -674,7 +674,7 @@ static GooString *getImageFileName(GooString *outputFileName, int numDigits, int GooString *imageName = new GooString(outputFileName); if (!singleFile) { snprintf(buf, sizeof(buf), "-%0*d", numDigits, page); - imageName->appendf(buf); + imageName->append(buf); } if (png) imageName->append(".png"); |