mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-10 13:47:46 +00:00
Compile-time locale refactor
This commit is contained in:
@@ -17,7 +17,7 @@ Table::Table(ViewResources& res, View& parentView, ITableDataBinding* data, ITab
|
||||
, m_hVerts(new SolidShaderVert[maxColumns * 6])
|
||||
, m_rowsView(*this, res) {
|
||||
if (!maxColumns)
|
||||
Log.report(logvisor::Fatal, "0-column tables not supported");
|
||||
Log.report(logvisor::Fatal, fmt("0-column tables not supported"));
|
||||
|
||||
m_scroll.m_view.reset(new ScrollView(res, *this, ScrollView::Style::ThinIndicator));
|
||||
|
||||
@@ -170,7 +170,7 @@ void Table::RowsView::_setRowVerts(const boo::SWindowRect& sub, const boo::SWind
|
||||
|
||||
void Table::cycleSortColumn(size_t c) {
|
||||
if (c >= m_columns)
|
||||
Log.report(logvisor::Fatal, "cycleSortColumn out of bounds (%" PRISize ", %" PRISize ")", c, m_columns);
|
||||
Log.report(logvisor::Fatal, fmt("cycleSortColumn out of bounds ({}, {})"), c, m_columns);
|
||||
if (m_state) {
|
||||
size_t cIdx;
|
||||
SortDirection dir = m_state->getSort(cIdx);
|
||||
@@ -187,7 +187,7 @@ void Table::selectRow(size_t r) {
|
||||
if (m_inSelectRow)
|
||||
return;
|
||||
if (r >= m_rows && r != SIZE_MAX)
|
||||
Log.report(logvisor::Fatal, "selectRow out of bounds (%" PRISize ", %" PRISize ")", r, m_rows);
|
||||
Log.report(logvisor::Fatal, fmt("selectRow out of bounds ({}, {})"), r, m_rows);
|
||||
if (r == m_selectedRow) {
|
||||
if (m_state) {
|
||||
m_inSelectRow = true;
|
||||
|
||||
Reference in New Issue
Block a user