OSDN Git Service

mark qt_real_to_string() and qt_int_to_string() functions as static
authorIvailo Monev <xakepa10@gmail.com>
Mon, 22 Aug 2022 23:40:17 +0000 (02:40 +0300)
committerIvailo Monev <xakepa10@gmail.com>
Mon, 22 Aug 2022 23:40:17 +0000 (02:40 +0300)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
src/gui/painting/qpdf.cpp
src/gui/painting/qpdf_p.h

index c8cef47..0f4c69e 100644 (file)
@@ -37,7 +37,8 @@ QT_BEGIN_NAMESPACE
 extern QSizeF qt_paperSizeToQSizeF(QPrinter::PaperSize size);
 
 /* also adds a space at the end of the number */
-const char *qt_real_to_string(qreal val, char *buf) {
+static const char *qt_real_to_string(qreal val, char *buf)
+{
     const char *ret = buf;
 
     if (qIsNaN(val)) {
@@ -89,7 +90,8 @@ const char *qt_real_to_string(qreal val, char *buf) {
     return ret;
 }
 
-const char *qt_int_to_string(int val, char *buf) {
+static const char *qt_int_to_string(int val, char *buf)
+{
     const char *ret = buf;
     if (val < 0) {
         *(buf++) = '-';
index 5639d6a..983f409 100644 (file)
@@ -52,9 +52,6 @@ QT_BEGIN_NAMESPACE
 #define PPK_CupsPaperRect QPrintEngine::PrintEnginePropertyKey(0xfe02)
 #define PPK_CupsStringPageSize QPrintEngine::PrintEnginePropertyKey(0xfe03)
 
-const char *qt_real_to_string(qreal val, char *buf);
-const char *qt_int_to_string(int val, char *buf);
-
 namespace QPdf {
 
     class ByteStream