From f9c3bb397743e2556b55f8f6433aec8e731a81e8 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 10 Jul 2021 02:05:56 +0200 Subject: Use dcp::compose rather than our own. --- src/stl_binary_reader.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/stl_binary_reader.cc') diff --git a/src/stl_binary_reader.cc b/src/stl_binary_reader.cc index f441aec..43f51b8 100644 --- a/src/stl_binary_reader.cc +++ b/src/stl_binary_reader.cc @@ -21,7 +21,7 @@ #include "exceptions.h" #include "iso6937.h" #include "stl_util.h" -#include "compose.hpp" +#include #include #include #include @@ -100,7 +100,7 @@ public: { _in.read (reinterpret_cast(_buffer), size); if (_in.gcount() != size) { - throw STLError (String::compose("Could not read %1 block from binary STL file", what)); + throw STLError (dcp::compose("Could not read %1 block from binary STL file", what)); } } @@ -121,7 +121,7 @@ public: { size_t const N = fread (_buffer, 1, size, _in); if (static_cast(N) != size) { - throw STLError (String::compose("Could not read %1 block from binary STL file", what)); + throw STLError (dcp::compose("Could not read %1 block from binary STL file", what)); } } -- cgit v1.2.3