mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-24 01:01:15 -06:00
Fixing Clang warnings 3
This commit is contained in:
parent
b85de89751
commit
1834ebe981
21 changed files with 25 additions and 29 deletions
|
|
@ -50,7 +50,7 @@ bool FlashAir::test(wxString &msg) const
|
|||
res = false;
|
||||
msg = format_error(body, error, status);
|
||||
})
|
||||
.on_complete([&, this](std::string body, unsigned) {
|
||||
.on_complete([&](std::string body, unsigned) {
|
||||
BOOST_LOG_TRIVIAL(debug) << boost::format("%1%: Got upload enabled: %2%") % name % body;
|
||||
|
||||
res = boost::starts_with(body, "1");
|
||||
|
|
|
|||
|
|
@ -190,7 +190,7 @@ bool Repetier::get_groups(wxArrayString& groups) const
|
|||
http.on_error([&](std::string body, std::string error, unsigned status) {
|
||||
BOOST_LOG_TRIVIAL(error) << boost::format("%1%: Error getting version: %2%, HTTP %3%, body: `%4%`") % name % error % status % body;
|
||||
})
|
||||
.on_complete([&, this](std::string body, unsigned) {
|
||||
.on_complete([&](std::string body, unsigned) {
|
||||
BOOST_LOG_TRIVIAL(debug) << boost::format("%1%: Got groups: %2%") % name % body;
|
||||
|
||||
try {
|
||||
|
|
@ -233,7 +233,7 @@ bool Repetier::get_printers(wxArrayString& printers) const
|
|||
BOOST_LOG_TRIVIAL(error) << boost::format("%1%: Error listing printers: %2%, HTTP %3%, body: `%4%`") % name % error % status % body;
|
||||
res = false;
|
||||
})
|
||||
.on_complete([&, this](std::string body, unsigned http_status) {
|
||||
.on_complete([&](std::string body, unsigned http_status) {
|
||||
BOOST_LOG_TRIVIAL(debug) << boost::format("%1%: Got printers: %2%, HTTP status: %3%") % name % body % http_status;
|
||||
|
||||
if (http_status != 200)
|
||||
|
|
|
|||
|
|
@ -209,7 +209,7 @@ public:
|
|||
bool is_immutable() const override { return true; }
|
||||
bool is_optional() const override { return m_optional; }
|
||||
// If it is an immutable object, return its pointer. There is a map assigning a temporary ObjectID to the immutable object pointer.
|
||||
const void* immutable_object_ptr() const { return (const void*)m_shared_object.get(); }
|
||||
const void* immutable_object_ptr() const override { return (const void*)m_shared_object.get(); }
|
||||
|
||||
// Estimated size in memory, to be used to drop least recently used snapshots.
|
||||
size_t memsize() const override {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue