We need to be able to read the config even if the GPU options are not in it.
[dcpomatic.git] / src / lib / config.h
index eb5e255a719d3bd94ab832e6a63b02bd3f801497..f3a35fa9bb1bd63861113c01ec87d6d71c682d79 100644 (file)
@@ -630,7 +630,7 @@ public:
                return _selected_gpu;
        }
 
-       std::string gpu_license_server() const {
+       boost::optional<std::string> gpu_license_server() const {
                return _gpu_license_server;
        }
 
@@ -638,7 +638,7 @@ public:
                return _gpu_license_port;
        }
 
-       std::string gpu_license() const {
+       boost::optional<std::string> gpu_license() const {
                return _gpu_license;
        }
 
@@ -1496,9 +1496,9 @@ private:
        bool _enable_gpu;
        boost::optional<boost::filesystem::path> _gpu_binary_location;
        int _selected_gpu;
-       std::string _gpu_license_server;
+       boost::optional<std::string> _gpu_license_server;
        int _gpu_license_port;
-       std::string _gpu_license;
+       boost::optional<std::string> _gpu_license;
 
        ExportConfig _export;