mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-22 01:34:21 +00:00
Introjucer: moved the definition of a BinaryData constant into the header file.
This commit is contained in:
parent
4869c0a202
commit
45b49f84d1
5 changed files with 3 additions and 9 deletions
|
|
@ -5777,8 +5777,6 @@ const char* getNamedResource (const char* resourceNameUTF8, int& numBytes) throw
|
|||
return 0;
|
||||
}
|
||||
|
||||
const int namedResourceListSize = 9;
|
||||
|
||||
const char* namedResourceList[] =
|
||||
{
|
||||
"brushed_aluminium_png",
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ namespace BinaryData
|
|||
extern const char* namedResourceList[];
|
||||
|
||||
// Number of elements in the namedResourceList array.
|
||||
extern const int namedResourceListSize;
|
||||
const int namedResourceListSize = 9;
|
||||
|
||||
// If you provide the name of one of the binary resource variables above, this function will
|
||||
// return the corresponding data and its size (or a null pointer if the name isn't found).
|
||||
|
|
|
|||
|
|
@ -1244,8 +1244,6 @@ const char* getNamedResource (const char* resourceNameUTF8, int& numBytes) throw
|
|||
return 0;
|
||||
}
|
||||
|
||||
const int namedResourceListSize = 22;
|
||||
|
||||
const char* namedResourceList[] =
|
||||
{
|
||||
"AudioPluginXCodeScript_txt",
|
||||
|
|
|
|||
|
|
@ -79,7 +79,7 @@ namespace BinaryData
|
|||
extern const char* namedResourceList[];
|
||||
|
||||
// Number of elements in the namedResourceList array.
|
||||
extern const int namedResourceListSize;
|
||||
const int namedResourceListSize = 22;
|
||||
|
||||
// If you provide the name of one of the binary resource variables above, this function will
|
||||
// return the corresponding data and its size (or a null pointer if the name isn't found).
|
||||
|
|
|
|||
|
|
@ -163,7 +163,7 @@ bool ResourceFile::writeHeader (MemoryOutputStream& header)
|
|||
<< " extern const char* namedResourceList[];" << newLine
|
||||
<< newLine
|
||||
<< " // Number of elements in the namedResourceList array." << newLine
|
||||
<< " extern const int namedResourceListSize;" << newLine
|
||||
<< " const int namedResourceListSize = " << files.size() << ";" << newLine
|
||||
<< newLine
|
||||
<< " // If you provide the name of one of the binary resource variables above, this function will" << newLine
|
||||
<< " // return the corresponding data and its size (or a null pointer if the name isn't found)." << newLine
|
||||
|
|
@ -252,8 +252,6 @@ bool ResourceFile::writeCpp (MemoryOutputStream& cpp, const File& headerFile, in
|
|||
<< " return 0;" << newLine
|
||||
<< "}" << newLine
|
||||
<< newLine
|
||||
<< "const int namedResourceListSize = " << files.size() << ";" << newLine
|
||||
<< newLine
|
||||
<< "const char* namedResourceList[] =" << newLine
|
||||
<< "{" << newLine;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue