Add default parameter for the detail in set_error().
authorCarl Hetherington <cth@carlh.net>
Sat, 17 Sep 2022 20:30:23 +0000 (22:30 +0200)
committerCarl Hetherington <cth@carlh.net>
Sat, 17 Sep 2022 20:30:23 +0000 (22:30 +0200)
src/lib/job.h

index 8b89fd0c383fbbb41c4bb76183588b2a583b08b0..c8204c2806aa20ff14bcb82a16eba70f0de1291a 100644 (file)
@@ -115,7 +115,7 @@ protected:
        };
 
        void set_state (State);
        };
 
        void set_state (State);
-       void set_error (std::string s, std::string d);
+       void set_error (std::string s, std::string d = "");
        void set_message (std::string m);
        int elapsed_sub_time () const;
        void check_for_interruption_or_pause ();
        void set_message (std::string m);
        int elapsed_sub_time () const;
        void check_for_interruption_or_pause ();