1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-17 00:44:19 +00:00

Replaced Projucer-generated header guards with #pragma once and updated the examples

This commit is contained in:
tpoole 2017-02-17 15:34:10 +00:00
parent 31c80db5a2
commit e33abbc6fe
230 changed files with 322 additions and 1219 deletions

View file

@ -322,11 +322,6 @@ void GeneratedCode::applyToCode (String& code,
const String& oldFileWithUserData,
Project* project) const
{
// header guard..
String headerGuard ("__JUCE_HEADER_");
headerGuard << String::toHexString ((className + "xx" + targetFile.getFileNameWithoutExtension()).hashCode64()).toUpperCase() << "__";
replaceTemplate (code, "headerGuard", headerGuard);
replaceTemplate (code, "version", JUCEApplicationBase::getInstance()->getApplicationVersion());
replaceTemplate (code, "creationTime", Time::getCurrentTime().toString (true, true, true));