qt5/src/poppler-qt5.h | 8 ++++---- qt6/src/poppler-qt6.h | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-)
New commits: commit 85fc5394a8fd785486a7c73630d320f459a7a281 Author: Albert Astals Cid <[email protected]> Date: Tue Feb 8 14:54:01 2022 +0100 qt: Change typedefs to using Much easier to understand diff --git a/qt5/src/poppler-qt5.h b/qt5/src/poppler-qt5.h index bab846f8..abeb4fdb 100644 --- a/qt5/src/poppler-qt5.h +++ b/qt5/src/poppler-qt5.h @@ -94,7 +94,7 @@ struct OutlineItemData; \since 0.16 */ -typedef void (*PopplerDebugFunc)(const QString & /*message*/, const QVariant & /*closure*/); +using PopplerDebugFunc = void (*)(const QString & /*message*/, const QVariant & /*closure*/); /** Set a new debug/error output function. @@ -537,7 +537,7 @@ public: \since 0.62 */ - typedef void (*RenderToImagePartialUpdateFunc)(const QImage & /*image*/, const QVariant & /*closure*/); + using RenderToImagePartialUpdateFunc = void (*)(const QImage & /*image*/, const QVariant & /*closure*/); /** Partial Update query renderToImage callback. @@ -547,7 +547,7 @@ public: \since 0.62 */ - typedef bool (*ShouldRenderToImagePartialQueryFunc)(const QVariant & /*closure*/); + using ShouldRenderToImagePartialQueryFunc = bool (*)(const QVariant & /*closure*/); /** Render the page to a QImage using the current @@ -608,7 +608,7 @@ public: \since 0.63 */ - typedef bool (*ShouldAbortQueryFunc)(const QVariant & /*closure*/); + using ShouldAbortQueryFunc = bool (*)(const QVariant & /*closure*/); /** Render the page to a QImage using the current diff --git a/qt6/src/poppler-qt6.h b/qt6/src/poppler-qt6.h index 779e64dc..da27d866 100644 --- a/qt6/src/poppler-qt6.h +++ b/qt6/src/poppler-qt6.h @@ -94,7 +94,7 @@ struct OutlineItemData; the first parameter is the actual message, the second is the unaltered closure argument which was passed to the setDebugErrorFunction call. */ -typedef void (*PopplerDebugFunc)(const QString & /*message*/, const QVariant & /*closure*/); +using PopplerDebugFunc = void (*)(const QString & /*message*/, const QVariant & /*closure*/); /** Set a new debug/error output function. @@ -519,7 +519,7 @@ public: the first parameter is the image as rendered up to now, the second is the unaltered closure argument which was passed to the renderToImage call. */ - typedef void (*RenderToImagePartialUpdateFunc)(const QImage & /*image*/, const QVariant & /*closure*/); + using RenderToImagePartialUpdateFunc = void (*)(const QImage & /*image*/, const QVariant & /*closure*/); /** Partial Update query renderToImage callback. @@ -527,7 +527,7 @@ public: This function type is used for query if the partial rendering update should happen; the parameter is the unaltered closure argument which was passed to the renderToImage call. */ - typedef bool (*ShouldRenderToImagePartialQueryFunc)(const QVariant & /*closure*/); + using ShouldRenderToImagePartialQueryFunc = bool (*)(const QVariant & /*closure*/); /** Render the page to a QImage using the current @@ -584,7 +584,7 @@ public: This function type is used for query if the current rendering/text extraction should be cancelled. */ - typedef bool (*ShouldAbortQueryFunc)(const QVariant & /*closure*/); + using ShouldAbortQueryFunc = bool (*)(const QVariant & /*closure*/); /** Render the page to a QImage using the current
