зеркало из https://github.com/mozilla/gecko-dev.git
Bug 830549: Mark a variable in nsFind.cpp as DebugOnly, to fix opt build warning. r=Neil
This commit is contained in:
Родитель
127a54e170
Коммит
39c1f36df7
|
@ -27,6 +27,9 @@
|
|||
#include "nsCRT.h"
|
||||
#include "nsRange.h"
|
||||
#include "nsContentUtils.h"
|
||||
#include "mozilla/DebugOnly.h"
|
||||
|
||||
using namespace mozilla;
|
||||
|
||||
// Yikes! Casting a char to unichar can fill with ones!
|
||||
#define CHAR_TO_UNICHAR(c) ((PRUnichar)(const unsigned char)c)
|
||||
|
@ -1202,7 +1205,7 @@ nsFind::Find(const PRUnichar *aPatText, nsIDOMRange* aSearchRange,
|
|||
if (matchAnchorNode != mIterNode)
|
||||
{
|
||||
nsCOMPtr<nsIContent> content (do_QueryInterface(matchAnchorNode));
|
||||
nsresult rv = NS_ERROR_UNEXPECTED;
|
||||
DebugOnly<nsresult> rv = NS_ERROR_UNEXPECTED;
|
||||
if (content)
|
||||
rv = mIterator->PositionAt(content);
|
||||
frag = 0;
|
||||
|
|
Загрузка…
Ссылка в новой задаче