summaryrefslogtreecommitdiff
path: root/src/stl_binary_reader.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-07-10 02:05:56 +0200
committerCarl Hetherington <cth@carlh.net>2021-07-10 02:05:56 +0200
commitf9c3bb397743e2556b55f8f6433aec8e731a81e8 (patch)
tree261ef68758b7c208577fa442df431ca2c9d1e9ba /src/stl_binary_reader.cc
parent8115d0f378b4c52a2ffca86ef8cfd949e9272d87 (diff)
Use dcp::compose rather than our own.compose
Diffstat (limited to 'src/stl_binary_reader.cc')
-rw-r--r--src/stl_binary_reader.cc6
1 files changed, 3 insertions, 3 deletions
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 <dcp/compose.h>
#include <boost/lexical_cast.hpp>
#include <boost/algorithm/string.hpp>
#include <boost/locale.hpp>
@@ -100,7 +100,7 @@ public:
{
_in.read (reinterpret_cast<char *>(_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<int>(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));
}
}