Skip to content

Commit

Permalink
Fixes compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
pblottiere committed Mar 22, 2019
1 parent e57e85d commit b0ef62b
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 25 deletions.
9 changes: 0 additions & 9 deletions python/server/auto_generated/qgsserverexception.sip.in
Original file line number Diff line number Diff line change
Expand Up @@ -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

};
Expand Down
3 changes: 2 additions & 1 deletion src/server/qgsserver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
{
Expand Down
6 changes: 0 additions & 6 deletions src/server/qgsserverexception.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
9 changes: 0 additions & 9 deletions src/server/qgsserverexception.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
Expand Down

0 comments on commit b0ef62b

Please sign in to comment.