summaryrefslogtreecommitdiffstats
path: root/examples/example03_post_status.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/example03_post_status.cpp')
-rw-r--r--examples/example03_post_status.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/examples/example03_post_status.cpp b/examples/example03_post_status.cpp
index bdf88dc..be7068d 100644
--- a/examples/example03_post_status.cpp
+++ b/examples/example03_post_status.cpp
@@ -16,7 +16,7 @@
// Post a status (/api/v1/status).
#if __has_include("mastodonpp.hpp")
-# include "mastodonpp.hpp" // We're building mastodonpp.
+# include "mastodonpp.hpp" // We're building mastodonpp.
#else
# include <mastodonpp/mastodonpp.hpp> // We're building outside mastodonpp.
#endif
@@ -27,11 +27,11 @@
#include <vector>
namespace masto = mastodonpp;
-using std::cout;
using std::cerr;
+using std::cout;
using std::endl;
-using std::to_string;
using std::string_view;
+using std::to_string;
using std::vector;
int main(int argc, char *argv[])
@@ -51,12 +51,12 @@ int main(int argc, char *argv[])
// Set up the parameters.
constexpr auto poll_seconds{60 * 60 * 24 * 2}; // 2 days.
- const masto::parametermap parameters
- {
- {"status", "How is the weather?"},
- {"poll[options]", vector<string_view>{"Nice", "not nice"}},
- {"poll[expires_in]", to_string(poll_seconds)}
- };
+ const masto::parametermap parameters{{"status", "How is the weather?"},
+ {"poll[options]",
+ vector<string_view>{"Nice",
+ "not nice"}},
+ {"poll[expires_in]",
+ to_string(poll_seconds)}};
// Post the status.
auto answer{connection.post(masto::API::v1::statuses, parameters)};