mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-17 00:44:19 +00:00
Made introjucer fix line endings when saving jucer documents.
This commit is contained in:
parent
9ba2079603
commit
e93f645b5a
11 changed files with 116 additions and 101 deletions
|
|
@ -338,11 +338,8 @@ void GeneratedCode::applyToCode (String& code,
|
|||
const String& oldFileWithUserData) const
|
||||
{
|
||||
// header guard..
|
||||
String headerGuard ("__JUCER_HEADER_");
|
||||
headerGuard << className.toUpperCase().retainCharacters ("ABCDEFGHIJKLMNOPQRSTUVWXYZ")
|
||||
<< "_" << fileNameRoot.toUpperCase().retainCharacters ("ABCDEFGHIJKLMNOPQRSTUVWXYZ")
|
||||
<< "_" << String::toHexString (Random::getSystemRandom().nextInt()).toUpperCase()
|
||||
<< "__";
|
||||
String headerGuard ("__JUCE_HEADER_");
|
||||
headerGuard << String::toHexString ((className + "xx" + fileNameRoot).hashCode64()).toUpperCase() << "__";
|
||||
replaceTemplate (code, "headerGuard", headerGuard);
|
||||
|
||||
replaceTemplate (code, "version", JUCEApplication::getInstance()->getApplicationVersion());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue