fix codex

Signed-off-by: lee <liwei576@huawei.com>
This commit is contained in:
lee 2023-03-14 14:55:50 +08:00
parent 221309655d
commit 233f15044c
5 changed files with 9 additions and 7 deletions

View File

@ -48,8 +48,8 @@ public:
bool SupportListeningFileDescriptor() const final; bool SupportListeningFileDescriptor() const final;
bool AddFileDescriptor(int32_t fileDescriptor, uint32_t events) final; bool AddFileDescriptor(int32_t fd, uint32_t events) final;
void RemoveFileDescriptor(int32_t fileDescriptor) final; void RemoveFileDescriptor(int32_t fd) final;
void SetFileDescriptorEventCallback(const FileDescriptorEventCallback &callback) final; void SetFileDescriptorEventCallback(const FileDescriptorEventCallback &callback) final;

View File

@ -76,7 +76,7 @@ string ExcludeTrailingPathDelimiter(const std::string& path)
} }
if (!path.empty()) { if (!path.empty()) {
return path.substr(0, (int)path.size() - 1); return path.substr(0, static_cast<int>(path.size()) - 1);
} }
return path; return path;

View File

@ -111,8 +111,8 @@ public:
static void DestroyInstance(); static void DestroyInstance();
private: private:
static std::shared_ptr<T> instance_; // Record the created DelayedSingleton instance. static std::shared_ptr<T> instance_;
static std::mutex mutex_; // Mutex, which guarantees that only one thread is accessing a common resource at any time. static std::mutex mutex_;
}; };
template<typename T> template<typename T>

View File

@ -184,7 +184,8 @@ void RSRenderServiceClient::SetScreenBacklight(ScreenId id, uint32_t level)
{ {
} }
bool RSRenderServiceClient::RegisterBufferAvailableListener(NodeId id, const BufferAvailableCallback &callback, bool isFromRenderThread) bool RSRenderServiceClient::RegisterBufferAvailableListener(
NodeId id, const BufferAvailableCallback &callback, bool isFromRenderThread)
{ {
return {}; return {};
} }

View File

@ -184,7 +184,8 @@ void RSRenderServiceClient::SetScreenBacklight(ScreenId id, uint32_t level)
{ {
} }
bool RSRenderServiceClient::RegisterBufferAvailableListener(NodeId id, const BufferAvailableCallback &callback, bool isFromRenderThread) bool RSRenderServiceClient::RegisterBufferAvailableListener(
NodeId id, const BufferAvailableCallback &callback, bool isFromRenderThread)
{ {
return {}; return {};
} }