Skip to content

Commit

Permalink
Fix some minor issues picked up by xcode
Browse files Browse the repository at this point in the history
  • Loading branch information
sirjuddington committed Sep 26, 2016
1 parent 6bc88ef commit 650fe41
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Application/MainApp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ class MainAppFLConnection : public wxConnection
MainAppFLConnection() {}
~MainAppFLConnection() {}

bool OnAdvise(const wxString& topic, const wxString& item, char* data, int size, wxIPCFormat format)
bool OnAdvise(const wxString& topic, const wxString& item, const void* data, size_t size, wxIPCFormat format)
{
return true;
}
Expand Down
6 changes: 4 additions & 2 deletions src/MainEditor/EntryOperations.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,8 @@ bool EntryOperations::modifyGfxOffsets(ArchiveEntry* entry, ModifyOffsetsDialog*
EntryType* type = entry->getType();
string entryformat = type->getFormat();
if (!(entryformat == "img_doom" || entryformat == "img_doom_arah" ||
entryformat == "img_doom_alpha" || "img_doom_beta" || entryformat == "img_png"))
entryformat == "img_doom_alpha" || entryformat == "img_doom_beta" ||
entryformat == "img_png"))
{
wxLogMessage("Entry \"%s\" is of type \"%s\" which does not support offsets", entry->getName(), entry->getType()->getName());
return false;
Expand Down Expand Up @@ -323,7 +324,8 @@ bool EntryOperations::setGfxOffsets(ArchiveEntry* entry, int x, int y)
EntryType* type = entry->getType();
string entryformat = type->getFormat();
if (!(entryformat == "img_doom" || entryformat == "img_doom_arah" ||
entryformat == "img_doom_alpha" || "img_doom_beta" || entryformat == "img_png"))
entryformat == "img_doom_alpha" || entryformat == "img_doom_beta" ||
entryformat == "img_png"))
{
wxLogMessage("Entry \"%s\" is of type \"%s\" which does not support offsets", entry->getName(), entry->getType()->getName());
return false;
Expand Down
2 changes: 1 addition & 1 deletion src/MainEditor/UI/EntryPanel/DataEntryPanel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ string DataEntryTable::GetValue(int row, int col)
// Custom value column
else if (columns[col].type == COL_CUSTOM_VALUE)
{
int value;
int value = 0;
if (columns[col].size == 1)
{
int8_t val;
Expand Down

0 comments on commit 650fe41

Please sign in to comment.