Skip to content

Commit 350df7d

Browse files
committed
fix up the includes to c variants in c++ code
1 parent 3838b54 commit 350df7d

19 files changed

Lines changed: 26 additions & 36 deletions

File tree

app/rest/request_json.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@
1717
#ifndef FIREBASE_APP_REST_REQUEST_JSON_H_
1818
#define FIREBASE_APP_REST_REQUEST_JSON_H_
1919

20-
#include <assert.h>
21-
20+
#include <cassert>
2221
#include <string>
2322

2423
#include "app/rest/request.h"

app/rest/response_json.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,8 @@
1717
#ifndef FIREBASE_APP_REST_RESPONSE_JSON_H_
1818
#define FIREBASE_APP_REST_RESPONSE_JSON_H_
1919

20-
#include <assert.h>
21-
#include <string.h>
22-
20+
#include <cassert>
21+
#include <cstring>
2322
#include <string>
2423
#include <utility>
2524

app/src/pthread_condvar.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,16 @@
1717
#ifndef FIREBASE_APP_SRC_PTHREAD_CONDVAR_H_
1818
#define FIREBASE_APP_SRC_PTHREAD_CONDVAR_H_
1919

20-
#include <stdint.h>
20+
#include <cstdint>
2121

2222
#include "app/src/include/firebase/internal/platform.h"
2323

2424
#if !FIREBASE_PLATFORM_WINDOWS
2525

26-
#include <errno.h>
2726
#include <pthread.h>
2827

28+
#include <cerrno>
29+
2930
#include "app/src/time.h"
3031

3132
namespace firebase {

app/src/reference_counted_future_impl.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@
1717
#ifndef FIREBASE_APP_SRC_REFERENCE_COUNTED_FUTURE_IMPL_H_
1818
#define FIREBASE_APP_SRC_REFERENCE_COUNTED_FUTURE_IMPL_H_
1919

20-
#include <assert.h>
21-
20+
#include <cassert>
2221
#include <functional>
2322
#include <map>
2423
#include <vector>

app/src/scheduler.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@
1717
#ifndef FIREBASE_APP_SRC_SCHEDULER_H_
1818
#define FIREBASE_APP_SRC_SCHEDULER_H_
1919

20-
#include <stdint.h>
21-
20+
#include <cstdint>
2221
#include <memory>
2322
#include <queue>
2423

app/src/secure/user_secure_manager.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@
1515
#ifndef FIREBASE_APP_SRC_SECURE_USER_SECURE_MANAGER_H_
1616
#define FIREBASE_APP_SRC_SECURE_USER_SECURE_MANAGER_H_
1717

18-
#include <stdint.h>
19-
18+
#include <cstdint>
2019
#include <map>
2120
#include <memory>
2221
#include <string>

app/src/semaphore.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
#ifndef FIREBASE_APP_SRC_SEMAPHORE_H_
1818
#define FIREBASE_APP_SRC_SEMAPHORE_H_
1919

20-
#include <errno.h>
21-
#include <stdint.h>
20+
#include <cerrno>
21+
#include <cstdint>
2222

2323
#include "app/src/assert.h"
2424
#include "app/src/include/firebase/internal/platform.h"

app/src/util_android.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717
#ifndef FIREBASE_APP_SRC_UTIL_ANDROID_H_
1818
#define FIREBASE_APP_SRC_UTIL_ANDROID_H_
1919

20-
#include <assert.h>
2120
#include <jni.h>
22-
#include <stddef.h>
23-
#include <stdint.h>
2421

22+
#include <cassert>
23+
#include <cstddef>
24+
#include <cstdint>
2525
#include <map>
2626
#include <string>
2727
#include <unordered_set>
@@ -193,7 +193,7 @@ bool LookupFieldIds(JNIEnv* env, jclass clazz,
193193

194194
// Used to populate an array of MethodNameSignature.
195195
#define METHOD_NAME_SIGNATURE_5(id, name, signature, method_type, optional) \
196-
{ name, signature, method_type, optional }
196+
{name, signature, method_type, optional}
197197
#define METHOD_NAME_SIGNATURE_4(id, name, signature, method_type) \
198198
METHOD_NAME_SIGNATURE_5( \
199199
id, name, signature, method_type, \

app_check/src/include/firebase/app_check.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@
1515
#ifndef FIREBASE_APP_CHECK_SRC_INCLUDE_FIREBASE_APP_CHECK_H_
1616
#define FIREBASE_APP_CHECK_SRC_INCLUDE_FIREBASE_APP_CHECK_H_
1717

18-
#include <stdint.h>
19-
18+
#include <cstdint>
2019
#include <string>
2120

2221
#include "firebase/app.h"

auth/src/desktop/auth_desktop.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@
1515
#ifndef FIREBASE_AUTH_SRC_DESKTOP_AUTH_DESKTOP_H_
1616
#define FIREBASE_AUTH_SRC_DESKTOP_AUTH_DESKTOP_H_
1717

18-
#include <stdint.h>
19-
18+
#include <cstdint>
2019
#include <memory>
2120
#include <string>
2221

0 commit comments

Comments
 (0)