From 9451c55d8fdcbdf5324f59b88abae72e547a9349 Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Fri, 27 Nov 2020 09:52:53 +0100 Subject: 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 --- sources/shiboken6/ApiExtractor/textstream.cpp | 10 ++++++++++ sources/shiboken6/ApiExtractor/textstream.h | 4 ++-- 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); -- cgit v1.2.3