reference return for API names
[rtaudio-cdist.git] / RtAudio.h
index 78d96a91ed4490c873eaaa2336c353a1ad74229a..3927ae19e7ac3e2e5d5da3246c7dd79c9ab273f7 100644 (file)
--- a/RtAudio.h
+++ b/RtAudio.h
@@ -416,7 +416,7 @@ class RTAUDIO_DLL_PUBLIC RtAudio
     If the API is unknown or not compiled, this function will return
     the empty string.
   */
-  static const std::string getCompiledApiName( RtAudio::Api api );
+  static const std::string& getCompiledApiName( RtAudio::Api api );
 
   //! Return the display name of a specified compiled audio API.
   /*!
@@ -424,7 +424,7 @@ class RTAUDIO_DLL_PUBLIC RtAudio
     If the API is unknown or not compiled, this function will return
     the empty string.
   */
-  static const std::string getCompiledApiDisplayName( RtAudio::Api api );
+  static const std::string& getCompiledApiDisplayName( RtAudio::Api api );
 
   //! Return the compiled audio API having the given name.
   /*!