diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2020-11-24 14:24:10 +0100 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2020-11-24 17:03:50 +0000 |
commit | d5bc255aa50a9181a3258b17c07b8da0890cb035 (patch) | |
tree | fa23ebf8519acf8c3fb010fc3312148ef445f6e8 /sources/shiboken6/ApiExtractor/messages.h | |
parent | 0a00958b083008dea340ef78b0f235ca49b7d22c (diff) |
shiboken6: Refactor writing out files
Write the buffer directly to the file instead of
reopening the text stream on it (which has unclear encoding
semantics). Add error handling on this occasion.
Change-Id: Ifd478f96a73dbc21e441fed8b8e543f07b6fa00b
Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'sources/shiboken6/ApiExtractor/messages.h')
-rw-r--r-- | sources/shiboken6/ApiExtractor/messages.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sources/shiboken6/ApiExtractor/messages.h b/sources/shiboken6/ApiExtractor/messages.h index 6610a318a..a17c22f2d 100644 --- a/sources/shiboken6/ApiExtractor/messages.h +++ b/sources/shiboken6/ApiExtractor/messages.h @@ -177,6 +177,8 @@ QString msgCannotOpenForReading(const QFile &f); QString msgCannotOpenForWriting(const QFile &f); +QString msgWriteFailed(const QFile &f, qsizetype size); + QString msgCannotUseEnumAsInt(const QString &name); QString msgConversionTypesDiffer(const QString &varType, const QString &conversionType); |