Skip to content

Commit

Permalink
pre-commit-test
Browse files Browse the repository at this point in the history
  • Loading branch information
dennispelle committed Oct 5, 2023
1 parent 6134d38 commit abb1f77
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
11 changes: 11 additions & 0 deletions src/look_up_saves.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,17 @@ getSubdirectoriesInFolder(nlohmann::json language,
{
selectedFolder = subdirectories[selectedOption];

Check warning on line 49 in src/look_up_saves.hpp

View workflow job for this annotation

GitHub Actions / ubuntu-latest-C++ CI

conversion to ‘std::vector<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char> > >::size_type’ {aka ‘long unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
}
static char inputvin[18];
const std::string newcar =
load_json<std::string>(language, "savepopup", "new_car");

if (selectedOption == 0)
{
ImGui::InputText(
load_json<std::string>(language, "input", "fin", "label").c_str(),
inputvin, sizeof(inputvin));
selectedFolder = inputvin;
}
}

return selectedFolder;
Expand Down
14 changes: 2 additions & 12 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -424,22 +424,12 @@ int main()
{
ImGui::SetItemDefaultFocus();

static char inputvin[18];
std::string selected_vin = getSubdirectoriesInFolder(language, "saves");

const std::string newcar =
load_json<std::string>(language, "savepopup", "new_car");
static std::string inputvin;

static char mileage[10] = "";
static char scantype[255] = "";

if (!selected_vin.compare(newcar))
{
ImGui::InputText(
load_json<std::string>(language, "input", "fin", "label").c_str(),
inputvin, sizeof(inputvin));
}

inputvin = getSubdirectoriesInFolder(language, "saves");
ImGui::InputText(
load_json<std::string>(language, "input", "scantype", "label")
.c_str(),
Expand Down

0 comments on commit abb1f77

Please sign in to comment.