Lint code

This commit is contained in:
kamathmanu 2020-11-30 14:56:39 -05:00
parent e36b090c5b
commit 0edd75949b

View file

@ -339,7 +339,9 @@ TimelineViewManager::toggleCameraView()
void void
TimelineViewManager::openImageOverlay(QString mxcUrl, QString eventId) const TimelineViewManager::openImageOverlay(QString mxcUrl, QString eventId) const
{ {
if (mxcUrl.isEmpty() || mxcUrl.isNull()) { return; } if (mxcUrl.isEmpty() || mxcUrl.isNull()) {
return;
}
QQuickImageResponse *imgResponse = QQuickImageResponse *imgResponse =
imgProvider->requestImageResponse(mxcUrl.remove("mxc://"), QSize()); imgProvider->requestImageResponse(mxcUrl.remove("mxc://"), QSize());
connect(imgResponse, &QQuickImageResponse::finished, this, [this, eventId, imgResponse]() { connect(imgResponse, &QQuickImageResponse::finished, this, [this, eventId, imgResponse]() {