propertybaghelper.cxx (24acc546) | propertybaghelper.cxx (07a3d7f1) |
---|---|
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 --- 117 unchanged lines hidden (view full) --- 126 // RTL_LOGFILE_CONTEXT_AUTHOR( aLogger, "forms", "dev@dba.openoffice.org", "PropertyBagHelper::impl_findFreeHandle" ); 127 ::comphelper::OPropertyArrayAggregationHelper& rPropInfo( impl_ts_getArrayHelper() ); 128 129 // check the preferred handle 130 sal_Int32 nHandle = lcl_getPropertyInfos().getPreferedPropertyId( _rPropertyName ); 131 if ( ( nHandle != -1 ) && rPropInfo.fillPropertyMembersByHandle( NULL, NULL, nHandle ) ) 132 nHandle = -1; 133 | 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 --- 117 unchanged lines hidden (view full) --- 126 // RTL_LOGFILE_CONTEXT_AUTHOR( aLogger, "forms", "dev@dba.openoffice.org", "PropertyBagHelper::impl_findFreeHandle" ); 127 ::comphelper::OPropertyArrayAggregationHelper& rPropInfo( impl_ts_getArrayHelper() ); 128 129 // check the preferred handle 130 sal_Int32 nHandle = lcl_getPropertyInfos().getPreferedPropertyId( _rPropertyName ); 131 if ( ( nHandle != -1 ) && rPropInfo.fillPropertyMembersByHandle( NULL, NULL, nHandle ) ) 132 nHandle = -1; 133 |
134 // seach a free handle in <math>F_1009</math> | 134 // search a free handle in <math>F_1009</math> |
135 if ( nHandle == -1 ) 136 { 137 sal_Int32 nPrime = 1009; 138 sal_Int32 nFactor = 11; 139 sal_Int32 nNum = nFactor; 140 while ( nNum != 1 ) 141 { 142 if ( !rPropInfo.fillPropertyMembersByHandle( NULL, NULL, nNum + NEW_HANDLE_BASE ) ) --- 223 unchanged lines hidden --- | 135 if ( nHandle == -1 ) 136 { 137 sal_Int32 nPrime = 1009; 138 sal_Int32 nFactor = 11; 139 sal_Int32 nNum = nFactor; 140 while ( nNum != 1 ) 141 { 142 if ( !rPropInfo.fillPropertyMembersByHandle( NULL, NULL, nNum + NEW_HANDLE_BASE ) ) --- 223 unchanged lines hidden --- |