]> git.ipfire.org Git - thirdparty/vectorscan.git/commitdiff
Use using directives to silence hiding warning
authorJustin Viiret <justin.viiret@intel.com>
Wed, 17 Feb 2016 05:54:45 +0000 (16:54 +1100)
committerMatthew Barr <matthew.barr@intel.com>
Wed, 20 Apr 2016 03:34:53 +0000 (13:34 +1000)
src/parser/check_refs.cpp
src/parser/prefilter.cpp
src/parser/unsupported.cpp

index ad81ae7601cf14031f83fc1fe95c93d0636c6a48..fae68f7457f61092e32e12493e69834084ef8625 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2015, Intel Corporation
+ * Copyright (c) 2015-2016, Intel Corporation
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions are met:
@@ -73,6 +73,8 @@ public:
         throw ParseError(str.str());
     }
 
+    using DefaultConstComponentVisitor::pre;
+
     void pre(const ComponentBackReference &c) override {
         if (c.ref_id) {
             if (c.ref_id >= num_ids) {
index f5a0c66c88ae24bf8ac98f84bacd277f62e07ca3..ea58a134fbfede7a836287f8b4f1cdb9cbb0dcae 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2015, Intel Corporation
+ * Copyright (c) 2015-2016, Intel Corporation
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions are met:
@@ -80,6 +80,9 @@ public:
         return numPositions <= MAX_REFERENT_POSITIONS;
     }
 
+    using DefaultConstComponentVisitor::pre;
+    using DefaultConstComponentVisitor::post;
+
     void pre(const AsciiComponentClass &) override {
         numPositions++;
     }
@@ -164,6 +167,8 @@ public:
     explicit FindSequenceVisitor(unsigned ref_id) : id(ref_id) {}
     explicit FindSequenceVisitor(const std::string &s) : name(s) {}
 
+    using DefaultConstComponentVisitor::pre;
+
     void pre(const ComponentSequence &c) override {
         if (!name.empty()) {
             if (c.getCaptureName() == name) {
@@ -203,6 +208,8 @@ public:
     PrefilterVisitor(Component *c, const ParseMode &m) : root(c), mode(m) {}
     ~PrefilterVisitor() override;
 
+    using DefaultComponentVisitor::visit;
+
     /** \brief Calls the visitor (recursively) on a new replacement component
      * we've just created. Takes care of freeing it if the sequence is itself
      * replaced. */
index c97a5750393e79f86a7095792bc7717325c29e80..c4b18b6a3000ec69350fb3f2ed99734fd6e67e19 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2015, Intel Corporation
+ * Copyright (c) 2015-2016, Intel Corporation
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions are met:
@@ -45,6 +45,7 @@ namespace ue2 {
 class UnsupportedVisitor : public DefaultConstComponentVisitor {
 public:
     ~UnsupportedVisitor() override;
+    using DefaultConstComponentVisitor::pre;
     void pre(const ComponentAssertion &) override {
         throw ParseError("Zero-width assertions are not supported.");
     }