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