mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-04 17:36:34 +02:00
fef1b84f0a
QStringLiterals generate a buffer so that during runtime there's very little cost to constructing a QString. However, this also means that duplicated strings cannot be optimized out into a single entry that gets referenced everywhere, taking up space in the binary. Rather than use QStringLiteral(""), we can just use QString{} (the default constructor) to signify the empty string. This gets rid of an unnecessary string buffer from being created, saving a tiny bit of space. While we're at it, we can just use the character overloads of particular functions when they're available instead of using a QString overload. The characters in this case are Latin-1 to begin with, so we can just specify the characters as QLatin1Char instances to use those overloads. These will automatically convert to QChar if needed, so this is safe. |
||
---|---|---|
.. | ||
GCKeyboardEmu.cpp | ||
GCKeyboardEmu.h | ||
GCMicrophone.cpp | ||
GCMicrophone.h | ||
GCPadEmu.cpp | ||
GCPadEmu.h | ||
GCPadWiiUConfigDialog.cpp | ||
GCPadWiiUConfigDialog.h | ||
Hotkey3D.cpp | ||
Hotkey3D.h | ||
HotkeyControllerProfile.cpp | ||
HotkeyControllerProfile.h | ||
HotkeyDebugging.cpp | ||
HotkeyDebugging.h | ||
HotkeyGeneral.cpp | ||
HotkeyGeneral.h | ||
HotkeyGraphics.cpp | ||
HotkeyGraphics.h | ||
HotkeyStates.cpp | ||
HotkeyStates.h | ||
HotkeyStatesOther.cpp | ||
HotkeyStatesOther.h | ||
HotkeyTAS.cpp | ||
HotkeyTAS.h | ||
HotkeyWii.cpp | ||
HotkeyWii.h | ||
IOWindow.cpp | ||
IOWindow.h | ||
MappingButton.cpp | ||
MappingButton.h | ||
MappingCommon.cpp | ||
MappingCommon.h | ||
MappingIndicator.cpp | ||
MappingIndicator.h | ||
MappingNumeric.cpp | ||
MappingNumeric.h | ||
MappingWidget.cpp | ||
MappingWidget.h | ||
MappingWindow.cpp | ||
MappingWindow.h | ||
WiimoteEmuExtension.cpp | ||
WiimoteEmuExtension.h | ||
WiimoteEmuGeneral.cpp | ||
WiimoteEmuGeneral.h | ||
WiimoteEmuMotionControl.cpp | ||
WiimoteEmuMotionControl.h |