aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken2/libshiboken/threadstatesaver.h
diff options
context:
space:
mode:
Diffstat (limited to 'sources/shiboken2/libshiboken/threadstatesaver.h')
-rw-r--r--sources/shiboken2/libshiboken/threadstatesaver.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/sources/shiboken2/libshiboken/threadstatesaver.h b/sources/shiboken2/libshiboken/threadstatesaver.h
index ddad9b67..ddfbcb93 100644
--- a/sources/shiboken2/libshiboken/threadstatesaver.h
+++ b/sources/shiboken2/libshiboken/threadstatesaver.h
@@ -49,17 +49,17 @@ namespace Shiboken
class LIBSHIBOKEN_API ThreadStateSaver
{
public:
- ThreadStateSaver(const ThreadStateSaver&) = delete;
- ThreadStateSaver(ThreadStateSaver&&) = delete;
- ThreadStateSaver &operator=(const ThreadStateSaver&) = delete;
- ThreadStateSaver &operator=(ThreadStateSaver&&) = delete;
+ ThreadStateSaver(const ThreadStateSaver &) = delete;
+ ThreadStateSaver(ThreadStateSaver &&) = delete;
+ ThreadStateSaver &operator=(const ThreadStateSaver &) = delete;
+ ThreadStateSaver &operator=(ThreadStateSaver &&) = delete;
ThreadStateSaver();
~ThreadStateSaver();
void save();
void restore();
private:
- PyThreadState* m_threadState;
+ PyThreadState *m_threadState = nullptr;
};
} // namespace Shiboken