Bug 830549: Mark a variable in nsFind.cpp as DebugOnly, to fix opt build warning. r=Neil

This commit is contained in:
Daniel Holbert 2013-01-15 14:52:42 -08:00
Родитель 127a54e170
Коммит 39c1f36df7
1 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -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;