inethist.cxx (40df464e) | inethist.cxx (c1e8cc3a) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 166 unchanged lines hidden (view full) --- 175 /** move. 176 */ 177 void move (sal_uInt16 nSI, sal_uInt16 nDI); 178 179 /** backlink. 180 */ 181 void backlink (sal_uInt16 nThis, sal_uInt16 nTail) 182 { | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 166 unchanged lines hidden (view full) --- 175 /** move. 176 */ 177 void move (sal_uInt16 nSI, sal_uInt16 nDI); 178 179 /** backlink. 180 */ 181 void backlink (sal_uInt16 nThis, sal_uInt16 nTail) 182 { |
183 register lru_entry &rThis = m_pList[nThis]; 184 register lru_entry &rTail = m_pList[nTail]; | 183 lru_entry &rThis = m_pList[nThis]; 184 lru_entry &rTail = m_pList[nTail]; |
185 186 rTail.m_nNext = nThis; 187 rTail.m_nPrev = rThis.m_nPrev; 188 rThis.m_nPrev = nTail; 189 m_pList[rTail.m_nPrev].m_nNext = nTail; 190 } 191 192 /** unlink. 193 */ 194 void unlink (sal_uInt16 nThis) 195 { | 185 186 rTail.m_nNext = nThis; 187 rTail.m_nPrev = rThis.m_nPrev; 188 rThis.m_nPrev = nTail; 189 m_pList[rTail.m_nPrev].m_nNext = nTail; 190 } 191 192 /** unlink. 193 */ 194 void unlink (sal_uInt16 nThis) 195 { |
196 register lru_entry &rThis = m_pList[nThis]; | 196 lru_entry &rThis = m_pList[nThis]; |
197 198 m_pList[rThis.m_nPrev].m_nNext = rThis.m_nNext; 199 m_pList[rThis.m_nNext].m_nPrev = rThis.m_nPrev; 200 rThis.m_nNext = nThis; 201 rThis.m_nPrev = nThis; 202 } 203 204 /** Not implemented. --- 334 unchanged lines hidden --- | 197 198 m_pList[rThis.m_nPrev].m_nNext = rThis.m_nNext; 199 m_pList[rThis.m_nNext].m_nPrev = rThis.m_nPrev; 200 rThis.m_nNext = nThis; 201 rThis.m_nPrev = nThis; 202 } 203 204 /** Not implemented. --- 334 unchanged lines hidden --- |