1 /**************************************************************************/ 2 /* */ 3 /* Copyright (c) 2001, 2010 NoMachine, http://www.nomachine.com/. */ 4 /* */ 5 /* NXCOMP, NX protocol compression and NX extensions to this software */ 6 /* are copyright of NoMachine. Redistribution and use of the present */ 7 /* software is allowed according to terms specified in the file LICENSE */ 8 /* which comes in the source distribution. */ 9 /* */ 10 /* Check http://www.nomachine.com/licensing.html for applicability. */ 11 /* */ 12 /* NX and NoMachine are trademarks of Medialogic S.p.A. */ 13 /* */ 14 /* All rights reserved. */ 15 /* */ 16 /**************************************************************************/ 17 18 #include "Control.h" 19 20 #include "PositionCacheCompat.h" 21 PositionCacheCompat()22PositionCacheCompat::PositionCacheCompat() 23 { 24 if (control -> isProtoStep7() == 0) 25 { 26 for (int i = 0; i < 32; i++) 27 { 28 base_[i] = new IntCache(8); 29 } 30 31 slot_ = 0; 32 last_ = 0; 33 } 34 } 35 ~PositionCacheCompat()36PositionCacheCompat::~PositionCacheCompat() 37 { 38 if (control -> isProtoStep7() == 0) 39 { 40 for (int i = 0; i < 32; i++) 41 { 42 delete base_[i]; 43 } 44 } 45 } 46