diff options
author | 2019-09-11 14:16:02 -0400 | |
---|---|---|
committer | 2019-09-11 14:16:02 -0400 | |
commit | bc15184c90a7eaf4cf16ea060916346e390a7c3b (patch) | |
tree | bdf475c68602c37cba55338702343f572bbed6ee /src/osd/modules/lib/osdlib.h | |
parent | 4f8928432a9db8cd46cfd5c6e2cb262eafaed9d2 (diff) |
Changed osd_get_clipboard_text() to return std::string (#5615)
* Changed osd_get_clipboard_text() to return std::string
This change has only been tested on Windows. The Un*x/Mac versions were
made blindly; they might not even build. This needs to be checked prior
to merging.
* Fixing Mac OS X build (hopefully)
Diffstat (limited to 'src/osd/modules/lib/osdlib.h')
-rw-r--r-- | src/osd/modules/lib/osdlib.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/osd/modules/lib/osdlib.h b/src/osd/modules/lib/osdlib.h index d080d1edd85..d126ed7f2ce 100644 --- a/src/osd/modules/lib/osdlib.h +++ b/src/osd/modules/lib/osdlib.h @@ -54,14 +54,9 @@ int osd_setenv(const char *name, const char *value, int overwrite); /*----------------------------------------------------------------------------- - osd_get_clipboard_text: retrieves text from the clipboard - - Return value: - - the returned string needs to be free-ed! + osd_get_clipboard_text: retrieves text from the clipboard -----------------------------------------------------------------------------*/ - -char *osd_get_clipboard_text(void); +std::string osd_get_clipboard_text(void); /*----------------------------------------------------------------------------- dynamic_module: load functions from optional shared libraries |