[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: koffice/kspread
From: Ariya Hidayat <ariya () kde ! org>
Date: 2004-04-03 0:53:11
Message-ID: 20040403005311.6375999E3 () office ! kde ! org
[Download RAW message or body]
CVS commit by ariya:
sanity check: prevent accidental copy of CellExtra and/or
access not through CellPrivate::extra() stub
M +7 -4 kspread_cell.cc 1.562
--- koffice/kspread/kspread_cell.cc #1.561:1.562
@@ -104,4 +104,6 @@ public:
int nbLines;
+private:
+ CellExtra& operator=( const CellExtra& );
};
@@ -158,11 +160,12 @@ public:
KSpreadCell* previousCell;
- // "extra stuff", see explanation for CellExtra
- CellExtra* cellExtra;
-
CellPrivate();
~CellPrivate();
CellExtra* extra();
+
+private:
+ // "extra stuff", see explanation for CellExtra
+ CellExtra* cellExtra;
};
@@ -199,5 +202,5 @@ CellExtra* CellPrivate::extra()
if( !cellExtra )
{
- cellExtra = new CellExtra();
+ cellExtra = new CellExtra;
cellExtra->QML = 0;
cellExtra->conditions = 0;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic