From cf4cde192deb597e3a480d97972ead5a88634fa8 Mon Sep 17 00:00:00 2001 From: jules Date: Mon, 19 May 2014 09:41:22 +0100 Subject: [PATCH] Added a couple of missing JUCE_API annotations. --- modules/juce_core/text/juce_LocalisedStrings.cpp | 8 ++++---- modules/juce_core/text/juce_LocalisedStrings.h | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/modules/juce_core/text/juce_LocalisedStrings.cpp b/modules/juce_core/text/juce_LocalisedStrings.cpp index 4563a8a913..e6118d31aa 100644 --- a/modules/juce_core/text/juce_LocalisedStrings.cpp +++ b/modules/juce_core/text/juce_LocalisedStrings.cpp @@ -194,11 +194,11 @@ LocalisedStrings* LocalisedStrings::getCurrentMappings() String LocalisedStrings::translateWithCurrentMappings (const String& text) { return juce::translate (text); } String LocalisedStrings::translateWithCurrentMappings (const char* text) { return juce::translate (text); } -String translate (const String& text) { return juce::translate (text, text); } -String translate (const char* text) { return juce::translate (String (text)); } -String translate (CharPointer_UTF8 text) { return juce::translate (String (text)); } +JUCE_API String translate (const String& text) { return juce::translate (text, text); } +JUCE_API String translate (const char* text) { return juce::translate (String (text)); } +JUCE_API String translate (CharPointer_UTF8 text) { return juce::translate (String (text)); } -String translate (const String& text, const String& resultIfNotFound) +JUCE_API String translate (const String& text, const String& resultIfNotFound) { const SpinLock::ScopedLockType sl (currentMappingsLock); diff --git a/modules/juce_core/text/juce_LocalisedStrings.h b/modules/juce_core/text/juce_LocalisedStrings.h index e8f70f7361..a594919b84 100644 --- a/modules/juce_core/text/juce_LocalisedStrings.h +++ b/modules/juce_core/text/juce_LocalisedStrings.h @@ -226,22 +226,22 @@ private: /** Uses the LocalisedStrings class to translate the given string literal. @see LocalisedStrings */ -String translate (const String& stringLiteral); +JUCE_API String translate (const String& stringLiteral); /** Uses the LocalisedStrings class to translate the given string literal. @see LocalisedStrings */ -String translate (const char* stringLiteral); +JUCE_API String translate (const char* stringLiteral); /** Uses the LocalisedStrings class to translate the given string literal. @see LocalisedStrings */ -String translate (CharPointer_UTF8 stringLiteral); +JUCE_API String translate (CharPointer_UTF8 stringLiteral); /** Uses the LocalisedStrings class to translate the given string literal. @see LocalisedStrings */ -String translate (const String& stringLiteral, const String& resultIfNotFound); +JUCE_API String translate (const String& stringLiteral, const String& resultIfNotFound); #endif // JUCE_LOCALISEDSTRINGS_H_INCLUDED