diff options
| author | nyamatongwe <unknown> | 2013-01-27 10:22:55 +1100 | 
|---|---|---|
| committer | nyamatongwe <unknown> | 2013-01-27 10:22:55 +1100 | 
| commit | 04954d0f6994ded50d4cd0e7117631b127939680 (patch) | |
| tree | 75f1914f46ad8f8363eb5104474768a32f39657c | |
| parent | d9f8c1dd61123543728dd3a39b18dc71ff465a82 (diff) | |
| download | scintilla-mirror-04954d0f6994ded50d4cd0e7117631b127939680.tar.gz | |
Disallow copying VarBuffer objects to ensure memory is managed correctly.
| -rw-r--r-- | win32/PlatWin.cxx | 3 | 
1 files changed, 3 insertions, 0 deletions
diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx index 380389f2f..c1cd38f71 100644 --- a/win32/PlatWin.cxx +++ b/win32/PlatWin.cxx @@ -448,6 +448,9 @@ void Font::Release() {  template<typename T, int lengthStandard>  class VarBuffer {  	T bufferStandard[lengthStandard]; +	// Private so VarBuffer objects can not be copied +	VarBuffer(const VarBuffer &); +	VarBuffer &operator=(const VarBuffer &);  public:  	T *buffer;  	VarBuffer(size_t length) : buffer(0) {  | 
