openapi-generator/samples/client/petstore/qt5cpp
sabras75 24c55d1f0e Fix#5856 - Add support for PATCH (#5875)
* Changing QBuffer to use a QByteArray solves the issue for me since there is no real use-case for using a QBuffer.

Documentation of QT5 states:

QBuffer::QBuffer(QByteArray *byteArray, QObject *parent = Q_NULLPTR)

Constructs a QBuffer that uses the QByteArray pointed to by byteArray as its internal buffer, and with the given parent. The caller is responsible for ensuring that byteArray remains valid until the QBuffer is destroyed, or until setBuffer() is called to change the buffer. QBuffer doesn't take ownership of the QByteArray.

Since the variable “request_content” is allocated on the stack, this is clearly wrong and a bug. The construction of QBuffer is designed this way so that whenever you write to the buffer, it is also written to the byte array that it is pointing to

* Add a retro-compatible solution based on QNetworkAccessManager SourceCode

* update samples
2017-06-19 23:08:32 +08:00
..
.swagger-codegen Update samples for several language (just whitespace changes, reordering, VERSION) (#5828) 2017-06-14 01:17:31 +08:00
client Fix#5856 - Add support for PATCH (#5875) 2017-06-19 23:08:32 +08:00
PetStore update gitignore to include PetStore.pro.user 2016-10-19 16:43:11 +08:00
.swagger-codegen-ignore [Qt5 C++] Replace illegal characters in param names for Qt5 generator (#3978) 2016-10-15 18:23:36 +08:00