Cleanup Camera related code and uses constant references where possible, fixes #5408.

Patch By: shh
Reviewed By: wraitii
Tested By: Angen
Commented By: Stan, Itms, historic_bruno
Differential Revision: https://code.wildfiregames.com/D1784
This was SVN commit r23034.
This commit is contained in:
vladislavbelov
2019-10-03 13:20:56 +00:00
parent a19b14aeb7
commit 8d2b143cb8
2 changed files with 5 additions and 4 deletions
@@ -1,4 +1,4 @@
/* Copyright (C) 2014 Wildfire Games.
/* Copyright (C) 2019 Wildfire Games.
* This file is part of 0 A.D.
*
* 0 A.D. is free software: you can redistribute it and/or modify
@@ -76,7 +76,8 @@ void EditableListCtrl::OnMouseEvent(wxMouseEvent& event)
wxPoint pt = event.GetPosition();
int col = GetColumnAtPosition(pt);
wxCHECK2(col >= 0 && col < (int)m_ColumnTypes.size(), return);
if (col < 0 || col >= static_cast<int>(m_ColumnTypes.size()))
return;
int flags;
long row = HitTest(pt, flags);
@@ -1,4 +1,4 @@
/* Copyright (C) 2009 Wildfire Games.
/* Copyright (C) 2019 Wildfire Games.
* This file is part of 0 A.D.
*
* 0 A.D. is free software: you can redistribute it and/or modify
@@ -51,7 +51,7 @@ AtlasDialog::AtlasDialog(wxWindow* parent, const wxString& title, const wxSize&
wxBoxSizer* buttonSizer = new wxBoxSizer(wxHORIZONTAL);
mainSizer->Add(buttonSizer, wxSizerFlags().Expand().Align(wxALIGN_RIGHT).Border(wxALL, 5));
mainSizer->Add(buttonSizer, wxSizerFlags().Expand().Border(wxALL, 5));
buttonSizer->Add(new wxButton(this, wxID_OK, _("OK")), wxSizerFlags().Border(wxRIGHT, 25));
buttonSizer->Add(new wxButton(this, wxID_CANCEL, _("Cancel")), wxSizerFlags().Border(wxRIGHT, 5));