浏览代码

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

Rémi Synave 2 年之前
父节点
当前提交
e0c67e0dd5
共有 1 个文件被更改,包括 0 次插入3 次删除
  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.");