Skip to content
Permalink
Browse files

Fixes compilation

  • Loading branch information
pblottiere committed Mar 22, 2019
1 parent e57e85d commit b0ef62ba51807ce438c5fb45015289f7f2048d42
@@ -43,15 +43,6 @@ Formats the exception for sending to client
- responseFormat: QString to store the content type of the response format.

The default implementation returns text/xml format.
%End

QByteArray formatResponse() const;
%Docstring
Formats the exception for sending to client

:return: QByteArray The formatted response.

.. versionadded:: 3.8
%End

};
@@ -347,7 +347,8 @@ void QgsServer::handleRequest( QgsServerRequest &request, QgsServerResponse &res
catch ( QgsServerException &ex )
{
responseDecorator.write( ex );
QgsMessageLog::logMessage( ex.formatResponse(), QStringLiteral( "Server" ), Qgis::Info );
QString format;
QgsMessageLog::logMessage( ex.formatResponse( format ), QStringLiteral( "Server" ), Qgis::Info );
}
catch ( QgsException &ex )
{
@@ -27,12 +27,6 @@ QgsServerException::QgsServerException( const QString &message, int responseCode

}

QByteArray QgsServerException::formatResponse() const
{
QString responseFormat;
return formatResponse( responseFormat );
}

QByteArray QgsServerException::formatResponse( QString &responseFormat ) const
{
QDomDocument doc;
@@ -58,15 +58,6 @@ class SERVER_EXPORT QgsServerException
*/
virtual QByteArray formatResponse( QString &responseFormat SIP_OUT ) const;

/**
* Formats the exception for sending to client
*
* \returns QByteArray The formatted response.
*
* \since QGIS 3.8
*/
QByteArray formatResponse() const;

private:
int mResponseCode;
};

0 comments on commit b0ef62b

Please sign in to comment.
You can’t perform that action at this time.