More disk build fixes.
authorCarl Hetherington <cth@carlh.net>
Sat, 3 Apr 2021 22:40:56 +0000 (00:40 +0200)
committerCarl Hetherington <cth@carlh.net>
Sat, 3 Apr 2021 22:40:56 +0000 (00:40 +0200)
src/tools/dcpomatic_disk.cc

index 5ae5cfb927168fb455d7cc8f173395835331c264..88f5420ee0a045c8693ec5220a54df7a4a8a2669 100644 (file)
@@ -49,11 +49,12 @@ DCPOMATIC_ENABLE_WARNINGS
 #endif
 
 
-using std::string;
-using std::exception;
-using std::cout;
 using std::cerr;
+using std::cout;
+using std::exception;
+using std::make_shared;
 using std::shared_ptr;
+using std::string;
 using boost::optional;
 #if BOOST_VERSION >= 106100
 using namespace boost::placeholders;
@@ -281,7 +282,7 @@ private:
                        if (!_nanomsg.send(drive.as_xml(), 2000)) {
                                throw CommunicationFailedError ();
                        }
-                       auto <string> reply = _nanomsg.receive (2000);
+                       auto reply = _nanomsg.receive (2000);
                        if (!reply || *reply != DISK_WRITER_OK) {
                                auto * m = new MessageDialog (
                                                this,