summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/web_contents_adapter.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/web_contents_adapter.cpp b/lib/web_contents_adapter.cpp
index 6a914af99..01e525291 100644
--- a/lib/web_contents_adapter.cpp
+++ b/lib/web_contents_adapter.cpp
@@ -231,10 +231,8 @@ void WebContentsAdapter::clearNavigationHistory()
void WebContentsAdapter::setZoomFactor(qreal factor)
{
Q_D(WebContentsAdapter);
- if (content::RenderViewHost *rvh = d->webContents->GetRenderViewHost()) {
+ if (content::RenderViewHost *rvh = d->webContents->GetRenderViewHost())
rvh->SetZoomLevel(content::ZoomFactorToZoomLevel(static_cast<double>(factor)));
- }
-
}
qreal WebContentsAdapter::currentZoomFactor() const