整形
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
#include <cocoatweet/api/interface/postInterface.h>
|
||||
|
||||
namespace CocoaTweet::API::Interface {
|
||||
size_t postInterface::curlCallback_(char* _ptr, size_t _size, size_t _nmemb, std::string* _stream) {
|
||||
size_t postInterface::curlCallback_(char* _ptr, size_t _size, size_t _nmemb,
|
||||
std::string* _stream) {
|
||||
int realsize = _size * _nmemb;
|
||||
_stream->append(_ptr, realsize);
|
||||
return realsize;
|
||||
}
|
||||
} // namespace CocoaTweet::API
|
||||
} // namespace CocoaTweet::API::Interface
|
||||
|
||||
@@ -16,6 +16,6 @@ protected:
|
||||
std::string url_;
|
||||
static size_t curlCallback_(char* _ptr, size_t _size, size_t _nmemb, std::string* _stream);
|
||||
};
|
||||
} // namespace CocoaTweet::API
|
||||
} // namespace CocoaTweet::API::Interface
|
||||
|
||||
#endif
|
||||
|
||||
@@ -67,7 +67,7 @@ void Update::process(std::weak_ptr<CocoaTweet::OAuth::OAuth1> _oauth,
|
||||
CURLcode res;
|
||||
std::string rcv;
|
||||
curl = curl_easy_init();
|
||||
url_ = url_;// + "?status=" + status_;
|
||||
url_ = url_; // + "?status=" + status_;
|
||||
std::cout << "URL : " << url_ << std::endl;
|
||||
if (curl) {
|
||||
curl_easy_setopt(curl, CURLOPT_URL, url_.c_str());
|
||||
|
||||
Reference in New Issue
Block a user