aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2020-11-27 09:52:53 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2020-11-27 10:53:02 +0000
commit9451c55d8fdcbdf5324f59b88abae72e547a9349 (patch)
tree6a8a03424af2e5ed0ac1156c4c038b15f443af26
parente6e1e6c299702ae3a4af66d1ab766289a4dba8db (diff)
shiboken6: Fix linker error about void TextStream::putCharHelper(char)
Move the TextStream::putChar() functions into the source file so that it sees the putCharHelper() template. Change-Id: If5ed7bfc2e1b36f1767e09f8306ddc0a9c7f834f Reviewed-by: Christian Tismer <tismer@stackless.com>
-rw-r--r--sources/shiboken6/ApiExtractor/textstream.cpp10
-rw-r--r--sources/shiboken6/ApiExtractor/textstream.h4
2 files changed, 12 insertions, 2 deletions
diff --git a/sources/shiboken6/ApiExtractor/textstream.cpp b/sources/shiboken6/ApiExtractor/textstream.cpp
index 55dc89290..f3b2dd13f 100644
--- a/sources/shiboken6/ApiExtractor/textstream.cpp
+++ b/sources/shiboken6/ApiExtractor/textstream.cpp
@@ -154,6 +154,11 @@ void TextStream::putString(QStringView v)
}
}
+void TextStream::putChar(QChar c)
+{
+ putCharHelper(c);
+}
+
void TextStream::putString(const char *s)
{
const char firstChar = *s;
@@ -169,6 +174,11 @@ void TextStream::putString(const char *s)
}
}
+void TextStream::putChar(char c)
+{
+ putCharHelper(c);
+}
+
void TextStream::putInt(int t)
{
checkIndent(CharClass::Other);
diff --git a/sources/shiboken6/ApiExtractor/textstream.h b/sources/shiboken6/ApiExtractor/textstream.h
index 991965094..3e66fbf12 100644
--- a/sources/shiboken6/ApiExtractor/textstream.h
+++ b/sources/shiboken6/ApiExtractor/textstream.h
@@ -91,9 +91,9 @@ public:
QChar lastChar() const;
void putString(QStringView v);
- void putChar(QChar c) { putCharHelper(c); }
+ void putChar(QChar c);
void putString(const char *s);
- void putChar(char c) { putCharHelper(c); }
+ void putChar(char c);
void putInt(int t);
void putSizeType(qsizetype t);