We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1829b4c commit 622a8b7Copy full SHA for 622a8b7
imgui.h
@@ -326,7 +326,7 @@ struct ImStrv
326
const char* End;
327
ImStrv() { Begin = End = NULL; }
328
ImStrv(const char* b) { Begin = b; End = b ? b + strlen(b) : NULL; }
329
- ImStrv(const char* b, const char* e){ Begin = b; End = e ? e : b + strlen(b); }
+ ImStrv(const char* b, const char* e){ Begin = b; End = e ? e : b ? b + strlen(b) : NULL; }
330
inline size_t length() const { return (size_t)(End - Begin); }
331
inline bool empty() const { return Begin == End; } // == "" or == NULL
332
inline operator bool() const { return Begin != NULL; } // return true when valid ("" is valid, NULL construction is not)
0 commit comments