fix of compilation warnings
This commit is contained in:
parent
0e55ffc07f
commit
5f75d61d49
@ -273,10 +273,10 @@ bool ImGuiWrapper::update_key_data(wxKeyEvent &evt)
|
||||
if (type == wxEVT_CHAR) {
|
||||
// Char event
|
||||
const auto key = evt.GetUnicodeKey();
|
||||
unsigned int key_u = static_cast<unsigned int>(key);
|
||||
|
||||
// Release BackSpace, Delete, ... when miss wxEVT_KEY_UP event
|
||||
// Already Fixed at begining of new frame
|
||||
// unsigned int key_u = static_cast<unsigned int>(key);
|
||||
//if (key_u >= 0 && key_u < IM_ARRAYSIZE(io.KeysDown) && io.KeysDown[key_u]) {
|
||||
// io.KeysDown[key_u] = false;
|
||||
//}
|
||||
|
@ -1135,7 +1135,7 @@ void NotificationManager::PrintHostUploadNotification::generate_text()
|
||||
line1 = shorten_to_line(m_filename, true);
|
||||
} else {
|
||||
line1 = shorten_to_line(m_filename + rest, false);
|
||||
int over = line1.size() - m_filename.size();
|
||||
size_t over = line1.size() - m_filename.size();
|
||||
if (over < 0)
|
||||
over = 0;
|
||||
if (over < rest.size())
|
||||
|
@ -716,7 +716,7 @@ bool PrusaLink::get_storage(wxArrayString& output) const
|
||||
res = true;
|
||||
|
||||
})
|
||||
.on_complete([&, this](std::string body, unsigned) {
|
||||
.on_complete([&](std::string body, unsigned) {
|
||||
BOOST_LOG_TRIVIAL(debug) << boost::format("%1%: Got storage: %2%") % name % body;
|
||||
try
|
||||
{
|
||||
@ -968,7 +968,6 @@ bool PrusaLink::upload_inner_with_host(PrintHostUpload upload_data, ProgressFn p
|
||||
}
|
||||
|
||||
std::string url;
|
||||
bool res = true;
|
||||
std::string storage_path = (use_put ? "api/v1/files" : "api/files");
|
||||
storage_path += (upload_data.storage.empty() ? "/local" : upload_data.storage);
|
||||
#ifdef WIN32
|
||||
|
@ -73,7 +73,7 @@ bool Repetier::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 version: %2%") % name % body;
|
||||
|
||||
try {
|
||||
|
Loading…
Reference in New Issue
Block a user