]> git.mxchange.org Git - flightgear.git/commitdiff
Don't allow call with no Filter set. Leads to crash.
authorTorsten Dreyer <torsten@t3r.de>
Wed, 19 Mar 2014 16:24:52 +0000 (17:24 +0100)
committerTorsten Dreyer <torsten@t3r.de>
Wed, 19 Mar 2014 16:24:52 +0000 (17:24 +0100)
src/Navaids/positioned.hxx

index 2d51e463af38d9b7b98847999f9c2fcf66506ea3..012edb0b18d0ae7cda9c3e556d09942eab726bd2 100644 (file)
@@ -181,13 +181,13 @@ public:
     Type mMinType, mMaxType;
   };
   
-  static FGPositionedList findWithinRange(const SGGeod& aPos, double aRangeNm, Filter* aFilter = NULL);
+  static FGPositionedList findWithinRange(const SGGeod& aPos, double aRangeNm, Filter* aFilter);
   
   static FGPositionedList findWithinRangePartial(const SGGeod& aPos, double aRangeNm, Filter* aFilter, bool& aPartial);
         
   static FGPositionedRef findClosestWithIdent(const std::string& aIdent, const SGGeod& aPos, Filter* aFilter = NULL);
 
-  static FGPositionedRef findFirstWithIdent(const std::string& aIdent, Filter* aFilter = NULL);
+  static FGPositionedRef findFirstWithIdent(const std::string& aIdent, Filter* aFilter);
 
   /**
    * Find all items with the specified ident