Fixes compilation

This commit is contained in:
Blottiere Paul 2019-03-22 12:57:11 +00:00
parent e57e85d557
commit b0ef62ba51
4 changed files with 2 additions and 25 deletions

View File

@ -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
};

View File

@ -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 )
{

View File

@ -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;

View File

@ -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;
};