mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-07 18:04:46 +00:00
Bug 589907 - Fix unused variable warning in docshell/ r=benjamin a=npob (debug warning)
This commit is contained in:
parent
a61f3df8cb
commit
6567553279
@ -1,6 +1,6 @@
|
||||
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
||||
* vim: ft=cpp tw=78 sw=4 et ts=4 sts=4 cin
|
||||
* ***** BEGIN LICENSE BLOCK *****
|
||||
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
||||
/* vim: ft=cpp tw=78 sw=4 et ts=8 sts=4 cin */
|
||||
/* ***** BEGIN LICENSE BLOCK *****
|
||||
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
||||
*
|
||||
* The contents of this file are subject to the Mozilla Public License Version
|
||||
@ -6576,12 +6576,15 @@ nsDocShell::ReattachEditorToWindow(nsISHEntry *aSHEntry)
|
||||
"Reattaching when there's not a detached editor.");
|
||||
|
||||
if (mEditorData || !aSHEntry)
|
||||
return;
|
||||
return;
|
||||
|
||||
mEditorData = aSHEntry->ForgetEditorData();
|
||||
if (mEditorData) {
|
||||
nsresult res = mEditorData->ReattachToWindow(this);
|
||||
NS_ASSERTION(NS_SUCCEEDED(res), "Failed to reattach editing session");
|
||||
#ifdef DEBUG
|
||||
nsresult rv =
|
||||
#endif
|
||||
mEditorData->ReattachToWindow(this);
|
||||
NS_ASSERTION(NS_SUCCEEDED(rv), "Failed to reattach editing session");
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user