Added to anttweakbar qt mapper a function to copy std::string values

This commit is contained in:
Luigi Malomo 2012-02-14 11:39:27 +00:00
parent 0464c9f822
commit e2b5b6fba3
2 changed files with 5 additions and 0 deletions

View File

@ -19,6 +19,10 @@ void TW_CALL CopyCDStringToClient(char **destPtr, const char *src)
(*destPtr)[srcLen] = '\0'; // null-terminated string
}
void TW_CALL CopyStdStringToClient(std::string& destClientString, const std::string& srcLibraryString)
{
destClientString = srcLibraryString;
}
TwMouseButtonID Qt2TwMouseButtonId(QMouseEvent *e)
{

View File

@ -2,6 +2,7 @@
#define ANTTWEAKBARMAPPER_H
void TW_CALL CopyCDStringToClient(char **destPtr, const char *src);
void TW_CALL CopyStdStringToClient(std::string& destClientString, const std::string& srcLibraryString);
TwMouseButtonID Qt2TwMouseButtonId(QMouseEvent *e);
int TwMousePressQt(QMouseEvent *e);