summaryrefslogtreecommitdiff
path: root/ucb/source/ucp/ftp/ftpurl.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'ucb/source/ucp/ftp/ftpurl.cxx')
-rw-r--r--ucb/source/ucp/ftp/ftpurl.cxx12
1 files changed, 5 insertions, 7 deletions
diff --git a/ucb/source/ucp/ftp/ftpurl.cxx b/ucb/source/ucp/ftp/ftpurl.cxx
index 645236fca963..eff2b4232633 100644
--- a/ucb/source/ucp/ftp/ftpurl.cxx
+++ b/ucb/source/ucp/ftp/ftpurl.cxx
@@ -378,12 +378,6 @@ namespace ftp {
&control)
-#define SET_DATA_CONTAINER \
- curl_easy_setopt(curl,CURLOPT_NOBODY,false); \
- MemoryContainer data; \
- curl_easy_setopt(curl,CURLOPT_WRITEFUNCTION,memory_write); \
- curl_easy_setopt(curl,CURLOPT_WRITEDATA,&data)
-
#define SET_URL(url) \
OString urlParAscii(url.getStr(), \
url.getLength(), \
@@ -439,7 +433,11 @@ std::vector<FTPDirentry> FTPURL::list(
CURL *curl = m_pFCP->handle();
SET_CONTROL_CONTAINER;
- SET_DATA_CONTAINER;
+ curl_easy_setopt(curl,CURLOPT_NOBODY,false);
+ MemoryContainer data;
+ curl_easy_setopt(curl,CURLOPT_WRITEFUNCTION,memory_write);
+ curl_easy_setopt(curl,CURLOPT_WRITEDATA,&data);
+
OUString url(ident(true,true));
SET_URL(url);
curl_easy_setopt(curl,CURLOPT_POSTQUOTE,0);