[kde,win32] initDimensions() functions: Don't store the string temporarily.

Inline the formatDimensions() call into the initString() call.

This doesn't affect the code size in either debug or release builds.
This commit is contained in:
David Korth 2025-02-01 10:30:55 -05:00
parent ff23009961
commit f4318755e6
2 changed files with 3 additions and 4 deletions

View File

@ -732,8 +732,7 @@ QLabel *RomDataViewPrivate::initDimensions(QLabel *lblDesc,
{
// Dimensions
const int *const dimensions = field.data.dimensions;
const QString str = formatDimensions(dimensions);
return initString(lblDesc, field, str);
return initString(lblDesc, field, formatDimensions(dimensions));
}
/**

View File

@ -1324,8 +1324,8 @@ int RP_ShellPropSheetExt_Private::initDimensions(_In_ HWND hWndTab,
{
// TODO: 'x' or '×'? Using 'x' for now.
const int *const dimensions = field.data.dimensions;
const tstring tstr = formatDimensions(dimensions);
return initString(hWndTab, pt_start, size, field, fieldIdx, tstr.c_str());
return initString(hWndTab, pt_start, size, field, fieldIdx,
formatDimensions(dimensions).c_str());
}
/**