appluno.cxx (b3f79822) | appluno.cxx (1b1b70fb) |
---|---|
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 --- 748 unchanged lines hidden (view full) --- 757 pArray[3].Name = rtl::OUString::createFromAscii( SC_UNONAME_DESCRIPTION ); 758 if (rDesc.pFuncDesc) 759 pArray[3].Value <<= rtl::OUString( *rDesc.pFuncDesc ); 760 761 pArray[4].Name = rtl::OUString::createFromAscii( SC_UNONAME_ARGUMENTS ); 762 if (rDesc.ppDefArgNames && rDesc.ppDefArgDescs && rDesc.pDefArgFlags ) 763 { 764 sal_uInt16 nCount = rDesc.nArgCount; | 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 --- 748 unchanged lines hidden (view full) --- 757 pArray[3].Name = rtl::OUString::createFromAscii( SC_UNONAME_DESCRIPTION ); 758 if (rDesc.pFuncDesc) 759 pArray[3].Value <<= rtl::OUString( *rDesc.pFuncDesc ); 760 761 pArray[4].Name = rtl::OUString::createFromAscii( SC_UNONAME_ARGUMENTS ); 762 if (rDesc.ppDefArgNames && rDesc.ppDefArgDescs && rDesc.pDefArgFlags ) 763 { 764 sal_uInt16 nCount = rDesc.nArgCount; |
765 if (nCount >= VAR_ARGS) | 765 if (nCount >= PAIRED_VAR_ARGS) 766 nCount -= PAIRED_VAR_ARGS - 2; 767 else if (nCount >= VAR_ARGS) |
766 nCount -= VAR_ARGS - 1; 767 sal_uInt16 nSeqCount = rDesc.GetSuppressedArgCount(); | 768 nCount -= VAR_ARGS - 1; 769 sal_uInt16 nSeqCount = rDesc.GetSuppressedArgCount(); |
768 if (nSeqCount >= VAR_ARGS) | 770 if (nSeqCount >= PAIRED_VAR_ARGS) 771 nSeqCount -= PAIRED_VAR_ARGS - 2; 772 else if (nSeqCount >= VAR_ARGS) |
769 nSeqCount -= VAR_ARGS - 1; 770 771 if (nSeqCount) 772 { 773 uno::Sequence<sheet::FunctionArgument> aArgSeq(nSeqCount); 774 sheet::FunctionArgument* pArgAry = aArgSeq.getArray(); 775 for (sal_uInt16 i=0, j=0; i<nCount; i++) 776 { --- 186 unchanged lines hidden --- | 773 nSeqCount -= VAR_ARGS - 1; 774 775 if (nSeqCount) 776 { 777 uno::Sequence<sheet::FunctionArgument> aArgSeq(nSeqCount); 778 sheet::FunctionArgument* pArgAry = aArgSeq.getArray(); 779 for (sal_uInt16 i=0, j=0; i<nCount; i++) 780 { --- 186 unchanged lines hidden --- |