libobs: Use byte sequence for non-breaking spaces
Use explicit UTF-8 byte sequence for the "no-break space" character. Prevents issues with certain editors, and fixes the following compiler warning on Visual C++: warning C4819: The file contains a character that cannot be represented in the current code page (X). Save the file in Unicode format to prevent data loss
This commit is contained in:
@@ -1288,13 +1288,15 @@ static inline void query_hotkeys()
|
||||
enum_bindings(query_hotkey, ¶m);
|
||||
}
|
||||
|
||||
#define NBSP "\xC2\xA0"
|
||||
|
||||
void *obs_hotkey_thread(void *arg)
|
||||
{
|
||||
UNUSED_PARAMETER(arg);
|
||||
|
||||
const char *hotkey_thread_name =
|
||||
profile_store_name(obs_get_profiler_name_store(),
|
||||
"obs_hotkey_thread(%g ms)", 25.);
|
||||
"obs_hotkey_thread(%g"NBSP"ms)", 25.);
|
||||
profile_register_root(hotkey_thread_name, (uint64_t)25000000);
|
||||
|
||||
while (os_event_timedwait(obs->hotkeys.stop_event, 25) == ETIMEDOUT) {
|
||||
|
Reference in New Issue
Block a user