// Name: src/msw/webview_ie.cpp
// Purpose: wxMSW wxWebViewIE class implementation for web view component
// Author: Marianne Gagnon
-// Id: $Id$
// Copyright: (c) 2010 Marianne Gagnon, 2011 Steven Lamerton
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
ClearSelection();
m_findText = text;
m_findFlags = flags;
- //find the text and return count.
+ //find the text and return wxNOT_FOUND if there are no matches.
FindInternal(text, flags, wxWEBVIEW_FIND_ADD_POINTERS);
- return m_findPointers.empty() ? wxNOT_FOUND : m_findPointers.size();
+ if(m_findPointers.empty())
+ return wxNOT_FOUND;
+
+ // Or their number if there are.
+ return m_findPointers.size();
}
void wxWebViewIE::SetEditable(bool enable)