From 3a45053d393b828faa8a5db3febc1d28e6952ce7 Mon Sep 17 00:00:00 2001 From: Adam Domurad Date: Mon, 4 Jun 2012 12:07:33 -0400 Subject: Fix for PR518, adds utility function for wrapping NPString in std::string. --- plugin/icedteanp/IcedTeaPluginUtils.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'plugin/icedteanp/IcedTeaPluginUtils.h') diff --git a/plugin/icedteanp/IcedTeaPluginUtils.h b/plugin/icedteanp/IcedTeaPluginUtils.h index 9382a94..48250d1 100644 --- a/plugin/icedteanp/IcedTeaPluginUtils.h +++ b/plugin/icedteanp/IcedTeaPluginUtils.h @@ -209,6 +209,9 @@ class IcedTeaPluginUtilities /* Converts the given integer to a string */ static void itoa(int i, std::string* result); + /* Copies a variant data type into a C++ string */ + static std::string NPVariantAsString(NPVariant variant); + /* Frees the given vector and the strings that its contents point to */ static void freeStringPtrVector(std::vector* v); -- cgit v1.2.3