mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Projucer: Make BinaryData::getNamedResourceOriginalFilename more robust
This commit is contained in:
parent
dbbf5cfe6d
commit
d5311698e9
2 changed files with 7 additions and 5 deletions
|
|
@ -4,6 +4,8 @@
|
|||
|
||||
*/
|
||||
|
||||
#include <string>
|
||||
|
||||
namespace BinaryData
|
||||
{
|
||||
|
||||
|
|
@ -8442,7 +8444,7 @@ const char* getNamedResourceOriginalFilename (const char* resourceNameUTF8)
|
|||
{
|
||||
for (unsigned int i = 0; i < (sizeof (namedResourceList) / sizeof (namedResourceList[0])); ++i)
|
||||
{
|
||||
if (namedResourceList[i] == resourceNameUTF8)
|
||||
if (std::string (namedResourceList[i]) == std::string (resourceNameUTF8))
|
||||
return originalFilenames[i];
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue