Compile fix.
Move the destructor (and copy constructor while I was at it) to the .cpp file in order to avoid instantiating the destructor of boost::intrusive_ptr<ThreadSafeBufferedCurlEasyRequest> from a header, which would require the class ThreadSafeBufferedCurlEasyRequest to be defined in that header, which is unnecessary. In other words, this avoid the need to include "aicurl.h" in headers using AIPerService[Ptr]. Also fixed indentation of a comment.
This commit is contained in:
@@ -81,6 +81,15 @@ AIPerService::AIPerService(void) :
|
||||
{
|
||||
}
|
||||
|
||||
AIPerService::~AIPerService()
|
||||
{
|
||||
}
|
||||
|
||||
// Fake copy constructor.
|
||||
AIPerService::AIPerService(AIPerService const&) : mHTTPBandwidth(0)
|
||||
{
|
||||
}
|
||||
|
||||
// url must be of the form
|
||||
// (see http://www.ietf.org/rfc/rfc3986.txt Appendix A for definitions not given here):
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user