Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: compiled/filter/CommentFilter.cpp

Issue 29574591: Issue 5258 - Implement Filter::As<>() method to make working with filters easier from C++ code (Closed) Base URL: https://hg.adblockplus.org/adblockpluscore
Patch Set: Removed unnecessary base class check Created Oct. 13, 2017, 4:57 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « compiled/filter/CommentFilter.h ('k') | compiled/filter/ElemHideBase.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: compiled/filter/CommentFilter.cpp
===================================================================
--- a/compiled/filter/CommentFilter.cpp
+++ b/compiled/filter/CommentFilter.cpp
@@ -13,17 +13,17 @@
*
* You should have received a copy of the GNU General Public License
* along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>.
*/
#include "CommentFilter.h"
CommentFilter::CommentFilter(const String& text)
- : Filter(Type::COMMENT, text)
+ : Filter(classType, text)
{
}
Filter::Type CommentFilter::Parse(const String& text)
{
if (text.length() && text[0] == u'!')
return Type::COMMENT;
else
« no previous file with comments | « compiled/filter/CommentFilter.h ('k') | compiled/filter/ElemHideBase.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld