X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Flib%2Ftypes.cc;h=ba062c3f8f0834194cc951fa8a506aa22bce3f1e;hp=d052b2a9a71dd3c458bc9126785a15af263e8e6c;hb=3828baf56467224f5d44049bf1e7a7ed11f43a05;hpb=3b48d5494c3cae7743d283203f5c8021860ab81f diff --git a/src/lib/types.cc b/src/lib/types.cc index d052b2a9a..ba062c3f8 100644 --- a/src/lib/types.cc +++ b/src/lib/types.cc @@ -1,32 +1,33 @@ /* Copyright (C) 2013 Carl Hetherington - This program is free software; you can redistribute it and/or modify + This file is part of DCP-o-matic. + + DCP-o-matic is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, + DCP-o-matic is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + along with DCP-o-matic. If not, see . */ +#include "types.h" +#include "dcpomatic_assert.h" +#include "raw_convert.h" #include #include -#include -#include "types.h" using std::max; using std::min; using std::string; using boost::shared_ptr; -using dcp::raw_convert; bool operator== (Crop const & a, Crop const & b) { @@ -51,7 +52,7 @@ resolution_to_string (Resolution r) return "4K"; } - assert (false); + DCPOMATIC_ASSERT (false); return ""; } @@ -67,7 +68,7 @@ string_to_resolution (string s) return RESOLUTION_4K; } - assert (false); + DCPOMATIC_ASSERT (false); return RESOLUTION_2K; }