summaryrefslogtreecommitdiff
path: root/protocols/Twitter/src/http.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Twitter/src/http.cpp')
-rw-r--r--protocols/Twitter/src/http.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/protocols/Twitter/src/http.cpp b/protocols/Twitter/src/http.cpp
index f953ec1973..912219dfaf 100644
--- a/protocols/Twitter/src/http.cpp
+++ b/protocols/Twitter/src/http.cpp
@@ -23,9 +23,5 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
std::string http::url_encode(const std::string &s)
{
- char *encoded = reinterpret_cast<char*>(CallService( MS_NETLIB_URLENCODE,0,reinterpret_cast<LPARAM>(s.c_str())));
- std::string ret = encoded;
- HeapFree(GetProcessHeap(),0,encoded);
-
- return ret;
+ return mir_ptr<char>( mir_urlEncode( s.c_str()));
}