Skip to content

Commit

Permalink
style: fix cpplint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
nattb8 committed Oct 17, 2023
1 parent e898207 commit 72266b3
Show file tree
Hide file tree
Showing 32 changed files with 104 additions and 99 deletions.
1 change: 1 addition & 0 deletions CPPLINT.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
filter=-whitespace,-legal/copyright,-readability/todo,-build/header_guard
1 change: 1 addition & 0 deletions Source/Immutable/Private/Immutable/IOS/CPPLINT.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
exclude_files=.*
1 change: 1 addition & 0 deletions Source/Immutable/Private/Immutable/ImtblBlui.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Fill out your copyright notice in the Description page of Project Settings.

#include "ImtblBlui.h"
#include <utility>
#include "Immutable/Assets/ImtblSDKResource.h"
#include "Immutable/Misc/ImtblLogging.h"
#include "ImtblJSConnector.h"
Expand Down
6 changes: 3 additions & 3 deletions Source/Immutable/Private/Immutable/ImtblBlui.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ UCLASS()
class IMMUTABLE_API UImtblBlui : public UObject {
GENERATED_BODY()

public:
public:
UImtblBlui();

UFUNCTION()
Expand All @@ -23,10 +23,10 @@ class IMMUTABLE_API UImtblBlui : public UObject {
UFUNCTION()
void OnLogEvent(const FString &LogText);

virtual void BeginDestroy() override;
void BeginDestroy() override;
void Init();

private:
private:
UPROPERTY()
UObject *BluEyePtr = nullptr;

Expand Down
12 changes: 6 additions & 6 deletions Source/Immutable/Private/Immutable/ImtblBrowserUserWidget.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@
UCLASS()
class IMMUTABLE_API UImtblBrowserUserWidget : public UUserWidget {
GENERATED_BODY()
public:
virtual TSharedRef<SWidget> RebuildWidget() override;
virtual void BeginDestroy() override;
virtual void RemoveFromParent() override;
virtual void OnWidgetRebuilt() override;
public:
TSharedRef<SWidget> RebuildWidget() override;
void BeginDestroy() override;
void RemoveFromParent() override;
void OnWidgetRebuilt() override;

TWeakObjectPtr<class UImtblJSConnector> GetJSConnector() const;

private:
private:
UPROPERTY()
class UImtblBrowserWidget *Browser = nullptr;

Expand Down
16 changes: 8 additions & 8 deletions Source/Immutable/Private/Immutable/ImtblBrowserWidget.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class IMMUTABLE_API UImtblBrowserWidget : public UWidget {

friend class UImtblJSConnector;

public:
public:
// Sets default values for this actor's properties
UImtblBrowserWidget();

Expand All @@ -24,10 +24,10 @@ class IMMUTABLE_API UImtblBrowserWidget : public UWidget {

bool IsPageLoaded() const;

protected:
protected:
void ExecuteJS(const FString &ScriptText) const;

private:
private:
DECLARE_DYNAMIC_MULTICAST_DELEGATE_ThreeParams(FOnConsoleMessage,
const FString &, Message,
const FString &, Source, int32,
Expand Down Expand Up @@ -67,10 +67,10 @@ class IMMUTABLE_API UImtblBrowserWidget : public UWidget {
/**
* UWidget interface
*/
public:
virtual void ReleaseSlateResources(bool bReleaseChildren) override;
public:
void ReleaseSlateResources(bool bReleaseChildren) override;

protected:
virtual TSharedRef<SWidget> RebuildWidget() override;
virtual void OnWidgetRebuilt() override;
protected:
TSharedRef<SWidget> RebuildWidget() override;
void OnWidgetRebuilt() override;
};
8 changes: 4 additions & 4 deletions Source/Immutable/Private/Immutable/ImtblJSConnector.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ class IMMUTABLE_API UImtblJSConnector : public UObject {

friend class UImmutablePassport;

public:
public:
DECLARE_MULTICAST_DELEGATE(FOnBridgeReadyDelegate);
DECLARE_DELEGATE_OneParam(FOnExecuteJsDelegate, const FString &);

UImtblJSConnector();
void Init(bool bPageLoaded);

virtual void PostInitProperties() override;
void PostInitProperties() override;
bool IsBound() const;

// The object name used to access the object in JavaScript (i.e.:
Expand All @@ -55,13 +55,13 @@ class IMMUTABLE_API UImtblJSConnector : public UObject {
void SetMobileBridgeReady();
#endif

protected:
protected:
// Call a JavaScript function in the connected browser
FString CallJS(const FString &Function, const FString &Data,
const FImtblJSResponseDelegate &HandleResponse,
float ResponseTimeout = 0.0f);

private:
private:
FOnBridgeReadyDelegate OnBridgeReady;
TMap<FString, FImtblJSResponseDelegate> RequestResponseDelegates;

Expand Down
1 change: 1 addition & 0 deletions Source/Immutable/Private/Immutable/Mac/CPPLINT.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
exclude_files=.*
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

// Fill out your copyright notice in the Description page of Project Settings.

#include "Containers/UnrealString.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class IMMUTABLE_API UImtblBlueprintAsyncAction
: public UBlueprintAsyncActionBase {
GENERATED_BODY()

protected:
protected:
UObject *WorldContextObject;

// Get subsystem
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@ class IMMUTABLE_API UImtblPassportConnectAsyncAction
DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FPassportConnectOutputPin,
FString, ErrorMessage);

public:
public:
UFUNCTION(BlueprintCallable,
meta = (WorldContext = "WorldContextObject",
BlueprintInternalUseOnly = "true"),
Category = "Immutable")
static UImtblPassportConnectAsyncAction *Connect(UObject *WorldContextObject);

virtual void Activate() override;
void Activate() override;

private:
private:
FImmutablePassportConnectData ConnectData;

void DoConnect(TWeakObjectPtr<class UImtblJSConnector> JSConnector);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,17 @@ class IMMUTABLE_API UImtblPassportConnectEvmAsyncAction
DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FPassportConnectEvmOutputPin,
FString, ErrorMessage);

public:
public:
UFUNCTION(BlueprintCallable,
meta = (WorldContext = "WorldContextObject",
BlueprintInternalUseOnly = "true"),
Category = "Immutable")
static UImtblPassportConnectEvmAsyncAction *
ConnectEvm(UObject *WorldContextObject);

virtual void Activate() override;
void Activate() override;

private:
private:
void DoConnectEvm(TWeakObjectPtr<class UImtblJSConnector> JSConnector);
void OnConnectEvm(FImmutablePassportResult Result);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,17 @@ class IMMUTABLE_API UImtblPassportConnectPKCEAsyncAction
DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FPassportConnectPKCEOutputPin,
FString, ErrorMessage);

public:
public:
UFUNCTION(BlueprintCallable,
meta = (WorldContext = "WorldContextObject",
BlueprintInternalUseOnly = "true"),
Category = "Immutable")
static UImtblPassportConnectPKCEAsyncAction *
ConnectPKCE(UObject *WorldContextObject);

virtual void Activate() override;
void Activate() override;

private:
private:
FImmutablePassportConnectData ConnectData;

void DoConnectPKCE(TWeakObjectPtr<class UImtblJSConnector> JSConnector);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,17 @@ class IMMUTABLE_API UImtblPassportConnectSilentAsyncAction
DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FPassportConnectSilentOutputPin,
FString, ErrorMessage);

public:
public:
UFUNCTION(BlueprintCallable,
meta = (WorldContext = "WorldContextObject",
BlueprintInternalUseOnly = "true"),
Category = "Immutable")
static UImtblPassportConnectSilentAsyncAction *
ConnectSilent(UObject *WorldContextObject);

virtual void Activate() override;
void Activate() override;

private:
private:
FImmutablePassportConnectData ConnectData;

UPROPERTY(BlueprintAssignable)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,17 @@ class IMMUTABLE_API UImtblPassportGetAddressAsyncAction
FString, ErrorMessage, FString,
Address);

public:
public:
UFUNCTION(BlueprintCallable,
meta = (WorldContext = "WorldContextObject",
BlueprintInternalUseOnly = "true"),
Category = "Immutable")
static UImtblPassportGetAddressAsyncAction *
GetAddress(UObject *WorldContextObject);

virtual void Activate() override;
void Activate() override;

private:
private:
void DoGetAddress(TWeakObjectPtr<class UImtblJSConnector> JSGetConnector);
void OnGetAddressResponse(FImmutablePassportResult Result);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,17 @@ class IMMUTABLE_API UImtblPassportGetEmailAsyncAction
FString, ErrorMessage, FString,
Email);

public:
public:
UFUNCTION(BlueprintCallable,
meta = (WorldContext = "WorldContextObject",
BlueprintInternalUseOnly = "true"),
Category = "Immutable")
static UImtblPassportGetEmailAsyncAction *
GetEmail(UObject *WorldContextObject);

virtual void Activate() override;
void Activate() override;

private:
private:
void DoGetEmail(TWeakObjectPtr<class UImtblJSConnector> JSGetConnector);
void OnGetEmailResponse(FImmutablePassportResult Result);

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Fill out your copyright notice in the Description page of Project Settings.

// Fill out your copyright notice in the Description page of Project Settings.

#pragma once

Expand All @@ -18,17 +19,17 @@ class IMMUTABLE_API UImtblPassportHasStoredCredentialsAsyncAction
DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(
FPassportHasStoredCredentialsOutputPin, FString, ErrorMessage);

public:
public:
UFUNCTION(BlueprintCallable,
meta = (WorldContext = "WorldContextObject",
BlueprintInternalUseOnly = "true"),
Category = "Immutable")
static UImtblPassportHasStoredCredentialsAsyncAction *
HasStoredCredentials(UObject *WorldContextObject);

virtual void Activate() override;
void Activate() override;

private:
private:
void DoHasStoredCredentials(
TWeakObjectPtr<class UImtblJSConnector> JSGetConnector);
void OnHasStoredCredentialsResponse(FImmutablePassportResult Result);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class IMMUTABLE_API UImmutablePassportImxBatchNftTransferAsyncAction
FPassportImxBatchNftTransferIdOutputPin, FString, ErrorMessageString,
const TArray<FString> &, TransferIds);

public:
public:
UFUNCTION(BlueprintCallable,
meta = (WorldContext = "WorldContextObject",
BlueprintInternalUseOnly = "true"),
Expand All @@ -28,9 +28,9 @@ class IMMUTABLE_API UImmutablePassportImxBatchNftTransferAsyncAction
ImxBatchNftTransfer(UObject *WorldContextObject,
const TArray<FNftTransferDetails> &NftTransferDetails);

virtual void Activate() override;
void Activate() override;

private:
private:
void DoTransfer(TWeakObjectPtr<class UImtblJSConnector> JSGetConnector);
void OnTransferResponse(FImmutablePassportResult Result);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class IMMUTABLE_API UImmutablePassportImxTransferAsyncAction
FString, ErrorMessageString,
FString, TransferId);

public:
public:
UFUNCTION(BlueprintCallable,
meta = (WorldContext = "WorldContextObject",
BlueprintInternalUseOnly = "true"),
Expand All @@ -29,9 +29,9 @@ class IMMUTABLE_API UImmutablePassportImxTransferAsyncAction
const FString &Type, const FString &Amount,
const FString &TokenId, const FString &TokenAddress);

virtual void Activate() override;
void Activate() override;

private:
private:
void DoTransfer(TWeakObjectPtr<class UImtblJSConnector> JSGetConnector);
void OnTransferResponse(FImmutablePassportResult Result);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class IMMUTABLE_API UImtblPassportInitializationAsyncAction
DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FPassportInitializationOutputPin,
FString, Message);

public:
public:
UFUNCTION(BlueprintCallable,
meta = (WorldContext = "WorldContextObject",
BlueprintInternalUseOnly = "true"),
Expand All @@ -27,9 +27,9 @@ class IMMUTABLE_API UImtblPassportInitializationAsyncAction
InitializePassport(UObject *WorldContextObject, const FString &ClientID,
const FString &RedirectUri, const FString &Environment);

virtual void Activate() override;
void Activate() override;

private:
private:
FString ClientId;
FString RedirectUri;
FString Environment;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,16 @@ class IMMUTABLE_API UImtblPassportLogoutAsyncAction
DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FPassportLogoutOutputPin, FString,
ErrorMessage);

public:
public:
UFUNCTION(BlueprintCallable,
meta = (WorldContext = "WorldContextObject",
BlueprintInternalUseOnly = "true"),
Category = "Immutable")
static UImtblPassportLogoutAsyncAction *Logout(UObject *WorldContextObject);

virtual void Activate() override;
void Activate() override;

private:
private:
void DoLogout(TWeakObjectPtr<class UImtblJSConnector> JSConnector);
void OnLogoutResponse(FImmutablePassportResult Result);

Expand Down
Loading

0 comments on commit 72266b3

Please sign in to comment.