mirror of
https://gitee.com/openharmony/graphic_graphic_2d
synced 2024-11-27 17:21:51 +00:00
fix codex
Signed-off-by: lee <liwei576@huawei.com>
This commit is contained in:
parent
221309655d
commit
233f15044c
@ -48,8 +48,8 @@ public:
|
||||
|
||||
bool SupportListeningFileDescriptor() const final;
|
||||
|
||||
bool AddFileDescriptor(int32_t fileDescriptor, uint32_t events) final;
|
||||
void RemoveFileDescriptor(int32_t fileDescriptor) final;
|
||||
bool AddFileDescriptor(int32_t fd, uint32_t events) final;
|
||||
void RemoveFileDescriptor(int32_t fd) final;
|
||||
|
||||
void SetFileDescriptorEventCallback(const FileDescriptorEventCallback &callback) final;
|
||||
|
||||
|
@ -76,7 +76,7 @@ string ExcludeTrailingPathDelimiter(const std::string& path)
|
||||
}
|
||||
|
||||
if (!path.empty()) {
|
||||
return path.substr(0, (int)path.size() - 1);
|
||||
return path.substr(0, static_cast<int>(path.size()) - 1);
|
||||
}
|
||||
|
||||
return path;
|
||||
|
@ -111,8 +111,8 @@ public:
|
||||
static void DestroyInstance();
|
||||
|
||||
private:
|
||||
static std::shared_ptr<T> instance_; // Record the created DelayedSingleton instance.
|
||||
static std::mutex mutex_; // Mutex, which guarantees that only one thread is accessing a common resource at any time.
|
||||
static std::shared_ptr<T> instance_;
|
||||
static std::mutex mutex_;
|
||||
};
|
||||
|
||||
template<typename T>
|
||||
|
@ -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 {};
|
||||
}
|
||||
|
@ -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 {};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user