Quellcode durchsuchen

Correction bug - lancement d'une exception alors qu'il n'y avait pas de raison

Rémi Synave vor 2 Jahren
Ursprung
Commit
e0c67e0dd5
1 geänderte Dateien mit 0 neuen und 3 gelöschten Zeilen
  1. 0 3
      StrengthLine/StrengthLine.cpp

+ 0 - 3
StrengthLine/StrengthLine.cpp

@@ -30,9 +30,6 @@
 
 StrengthLine::StrengthLine (double ax, double ay, double bx, double by)
 {
-  if (p1 == NULL || p2 == NULL)
-    throw std::
-      invalid_argument ("Points defining a strength line can't be NULL.");
   if (ax == bx && ay ==  by)
     throw std::
       invalid_argument ("Points defining a strength line can't be equals.");