Skip to content

Commit 94e0957

Browse files
committed
iCUESDK Includer: minor optimisation.
1 parent 4cc922f commit 94e0957

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/squarepine_graphics/linkers/iCUESDKIncluder.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@
5757
/** @returns a string that will look like "keyboard, touchbar". */
5858
inline juce::String toString (CorsairDeviceType cdt)
5959
{
60+
if (cdt == CDT_Unknown)
61+
return TRANS ("Unknown");
62+
6063
const auto cdtbs = std::bitset<32> ((int) cdt);
6164
size_t bitIndex = 0;
6265
juce::String s;
@@ -72,9 +75,6 @@
7275
}
7376
};
7477

75-
if (cdt == CDT_Unknown)
76-
return TRANS ("Unknown");
77-
7878
testBit (TRANS ("Keyboard"));
7979
testBit (TRANS ("Mouse"));
8080
testBit (TRANS ("Mousemat"));

0 commit comments

Comments
 (0)