From cc1e136bf28fc99fb5dc0c544fd64dd97484b056 Mon Sep 17 00:00:00 2001 From: keita Date: Sat, 23 Apr 2022 18:09:12 +0900 Subject: [PATCH] include guard --- src/cocoatweet/api/api.cc | 2 +- src/cocoatweet/api/oauth1/accessToken.h | 4 ++-- src/cocoatweet/api/oauth1/authorize.h | 4 ++-- src/cocoatweet/api/oauth1/oauth.cc | 2 +- src/cocoatweet/api/oauth1/requestToken.h | 4 ++-- src/cocoatweet/api/oauth2/token.h | 4 ++-- src/cocoatweet/authentication/authenticator.h | 4 ++-- src/cocoatweet/authentication/key.h | 4 ++-- src/cocoatweet/authentication/{authenticate.cc => oauth.cc} | 2 +- src/cocoatweet/authentication/{authenticate.h => oauth.h} | 0 src/cocoatweet/exception/credentialNotAllowedException.h | 4 ++-- src/main.cc | 2 +- 12 files changed, 18 insertions(+), 18 deletions(-) rename src/cocoatweet/authentication/{authenticate.cc => oauth.cc} (99%) rename src/cocoatweet/authentication/{authenticate.h => oauth.h} (100%) diff --git a/src/cocoatweet/api/api.cc b/src/cocoatweet/api/api.cc index 1b3804f..8669e10 100644 --- a/src/cocoatweet/api/api.cc +++ b/src/cocoatweet/api/api.cc @@ -1,5 +1,5 @@ #include -#include +#include #include #include diff --git a/src/cocoatweet/api/oauth1/accessToken.h b/src/cocoatweet/api/oauth1/accessToken.h index 232fa19..efdc4f2 100644 --- a/src/cocoatweet/api/oauth1/accessToken.h +++ b/src/cocoatweet/api/oauth1/accessToken.h @@ -1,5 +1,5 @@ -#ifndef COCOATWEET_API_OAUTH1_ACCESSTOKEN_H -#define COCOATWEET_API_OAUTH1_ACCESSTOKEN_H +#ifndef COCOATWEET_API_OAUTH1_ACCESSTOKEN_H_ +#define COCOATWEET_API_OAUTH1_ACCESSTOKEN_H_ #include #include diff --git a/src/cocoatweet/api/oauth1/authorize.h b/src/cocoatweet/api/oauth1/authorize.h index 025a3ed..9f0e0d2 100644 --- a/src/cocoatweet/api/oauth1/authorize.h +++ b/src/cocoatweet/api/oauth1/authorize.h @@ -1,5 +1,5 @@ -#ifndef COCOATWEET_API_OAUTH1_AUTHORIZE_H -#define COCOATWEET_API_OAUTH1_AUTHORIZE_H +#ifndef COCOATWEET_API_OAUTH1_AUTHORIZE_H_ +#define COCOATWEET_API_OAUTH1_AUTHORIZE_H_ #include namespace CocoaTweet::API::OAuth1 { diff --git a/src/cocoatweet/api/oauth1/oauth.cc b/src/cocoatweet/api/oauth1/oauth.cc index a7afb93..c0b8130 100644 --- a/src/cocoatweet/api/oauth1/oauth.cc +++ b/src/cocoatweet/api/oauth1/oauth.cc @@ -1,5 +1,5 @@ #include -#include +#include namespace CocoaTweet::API::OAuth1 { OAuth::OAuth(std::shared_ptr _oauth) { diff --git a/src/cocoatweet/api/oauth1/requestToken.h b/src/cocoatweet/api/oauth1/requestToken.h index 39741b3..2c285e7 100644 --- a/src/cocoatweet/api/oauth1/requestToken.h +++ b/src/cocoatweet/api/oauth1/requestToken.h @@ -1,5 +1,5 @@ -#ifndef COCOATWEET_API_OAUTH1_REQUESTTOKEN_H -#define COCOATWEET_API_OAUTH1_REQUESTTOKEN_H +#ifndef COCOATWEET_API_OAUTH1_REQUESTTOKEN_H_ +#define COCOATWEET_API_OAUTH1_REQUESTTOKEN_H_ #include #include diff --git a/src/cocoatweet/api/oauth2/token.h b/src/cocoatweet/api/oauth2/token.h index da34770..4fc0196 100644 --- a/src/cocoatweet/api/oauth2/token.h +++ b/src/cocoatweet/api/oauth2/token.h @@ -1,5 +1,5 @@ -#ifndef COCOATWEET_API_OAUTH2_TOKEN_H -#define COCOATWEET_API_OAUTH2_TOKEN_H +#ifndef COCOATWEET_API_OAUTH2_TOKEN_H_ +#define COCOATWEET_API_OAUTH2_TOKEN_H_ #include #include diff --git a/src/cocoatweet/authentication/authenticator.h b/src/cocoatweet/authentication/authenticator.h index 4d1baa2..f393b16 100644 --- a/src/cocoatweet/authentication/authenticator.h +++ b/src/cocoatweet/authentication/authenticator.h @@ -1,5 +1,5 @@ -#ifndef COCOATWEET_AUTHENTICATION_AUTHENTICATORBASE_H -#define COCOATWEET_AUTHENTICATION_AUTHENTICATORBASE_H +#ifndef COCOATWEET_AUTHENTICATION_AUTHENTICATOR_H_ +#define COCOATWEET_AUTHENTICATION_AUTHENTICATOR_H_ #include namespace CocoaTweet::Authentication { diff --git a/src/cocoatweet/authentication/key.h b/src/cocoatweet/authentication/key.h index e51cb6f..97aacc9 100644 --- a/src/cocoatweet/authentication/key.h +++ b/src/cocoatweet/authentication/key.h @@ -1,5 +1,5 @@ -#ifndef COCOATWEET_OAUTH_KEY_H_ -#define COCOATWEET_OAUTH_KEY_H_ +#ifndef COCOATWEET_AUTHENTICATION_KEY_H_ +#define COCOATWEET_AUTHENTICATION_KEY_H_ #include #include diff --git a/src/cocoatweet/authentication/authenticate.cc b/src/cocoatweet/authentication/oauth.cc similarity index 99% rename from src/cocoatweet/authentication/authenticate.cc rename to src/cocoatweet/authentication/oauth.cc index c316199..1b36b16 100644 --- a/src/cocoatweet/authentication/authenticate.cc +++ b/src/cocoatweet/authentication/oauth.cc @@ -1,4 +1,4 @@ -#include "authenticate.h" +#include "oauth.h" #include "cocoatweet/util/util.h" #include #include diff --git a/src/cocoatweet/authentication/authenticate.h b/src/cocoatweet/authentication/oauth.h similarity index 100% rename from src/cocoatweet/authentication/authenticate.h rename to src/cocoatweet/authentication/oauth.h diff --git a/src/cocoatweet/exception/credentialNotAllowedException.h b/src/cocoatweet/exception/credentialNotAllowedException.h index aabf8c7..b7005bf 100644 --- a/src/cocoatweet/exception/credentialNotAllowedException.h +++ b/src/cocoatweet/exception/credentialNotAllowedException.h @@ -1,5 +1,5 @@ -#ifndef COCOATWEET_EXCEPTION_CREDETIALNOTALLOWEDEXCEPTION_H_ -#define COCOATWEET_EXCEPTION_CREDETIALNOTALLOWEDEXCEPTION_H_ +#ifndef COCOATWEET_EXCEPTION_CREDENTIALNOTALLOWEDEXCEPTION_H_ +#define COCOATWEET_EXCEPTION_CREDENTIALNOTALLOWEDEXCEPTION_H_ #include diff --git a/src/main.cc b/src/main.cc index f67905b..00137b1 100644 --- a/src/main.cc +++ b/src/main.cc @@ -6,7 +6,7 @@ #include #include #include -#include +#include auto main() -> int { // Generate Key object