提交 bed4df0f 编写于 作者: W w_angrong 提交者: wangrong

codeCheck: fix code check warning

上级 dda011a1
...@@ -52,7 +52,7 @@ public: ...@@ -52,7 +52,7 @@ public:
mNumLocations(static_cast<unsigned>(numLocations)) { mNumLocations(static_cast<unsigned>(numLocations)) {
mPointerData.resize(mNumLocations); mPointerData.resize(mNumLocations);
} }
~GLDecoderContextData(){}
// Store |len| bytes from |data| into the buffer associated with // Store |len| bytes from |data| into the buffer associated with
// vertex attribute index |loc|. // vertex attribute index |loc|.
void storePointerData(unsigned int loc, void *data, size_t len) { void storePointerData(unsigned int loc, void *data, size_t len) {
......
...@@ -54,7 +54,7 @@ class SystemInformation { ...@@ -54,7 +54,7 @@ class SystemInformation {
collect_kernel_info(); collect_kernel_info();
collect_graphics_info(); collect_graphics_info();
} }
~SystemInformation() {}
std::string to_text() const { std::string to_text() const {
std::stringstream s; std::stringstream s;
......
...@@ -153,6 +153,7 @@ class SmallVector { ...@@ -153,6 +153,7 @@ class SmallVector {
this->destruct(this->begin(), this->end()); this->destruct(this->begin(), this->end());
if (isAllocated()) { if (isAllocated()) {
free(this->mBegin); free(this->mBegin);
this->mBegin = nullptr;
} }
} }
......
...@@ -40,6 +40,7 @@ class BufferQueue { ...@@ -40,6 +40,7 @@ class BufferQueue {
int try_pop_locked(Buffer *buffer); int try_pop_locked(Buffer *buffer);
int pop_locked(Buffer *buffer, std::unique_lock<std::mutex> &lock); int pop_locked(Buffer *buffer, std::unique_lock<std::mutex> &lock);
void close_locked(); void close_locked();
~BufferQueue() {}
private: private:
size_t capacity_ = 0; size_t capacity_ = 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册