Skip to content

Commit 6fc9b8f

Browse files
watersalesmanlaoshanxi
authored andcommitted
Remove deprecated curlpp::Cleanup from guide
1 parent d7a3bb5 commit 6fc9b8f

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

doc/guide.pdf

27 KB
Binary file not shown.

doc/guide.tex

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -111,12 +111,8 @@ \section{Global Preparation}
111111
When the program no longer uses cURLpp, it should call \verb+cURLpp::terminate()+,
112112
which is the opposite of the init call. It will then do the operations needed
113113
to cleanup the resources that the \verb+cURLpp::initialize()+ call initialized.
114-
115114
Repeated calls to \verb+cURLpp::initialize()+ and \verb+cURLpp::terminate()+ must not be made.
116-
They must only be called once each. The cURLpp::Cleanup class can be used to do this. It will
117-
call the \verb+cURLpp::initialize()+ function in its constructor and \verb+cURLpp::terminate()+
118-
in its destructor. Check example01.cpp in the examples/ directory of
119-
the source distribution for an example.
115+
They must only be called once each.
120116

121117
\section{Handle the Easy cURLpp}
122118

@@ -268,8 +264,6 @@ \subsubsection{cURLpp::Options}
268264
{
269265
try
270266
{
271-
cURLpp::Cleanup myCleanup;
272-
273267
// Creation of the URL option.
274268
cURLpp::Options::Url myUrl(
275269
std::string("http://example.com"));

0 commit comments

Comments
 (0)