mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
Fixes compilation
This commit is contained in:
parent
e57e85d557
commit
b0ef62ba51
@ -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;
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user