unoconversionutilities.hxx (8e2b2187) | unoconversionutilities.hxx (ad7e1cc0) |
---|---|
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 --- 2020 unchanged lines hidden (view full) --- 2029 // get the size of the elements 2030 typelib_TypeDescription *pDesc= NULL; 2031 type.getDescription( &pDesc); 2032 2033 typelib_IndirectTypeDescription *pSeqDesc= reinterpret_cast<typelib_IndirectTypeDescription*>(pDesc); 2034 typelib_TypeDescriptionReference *pSeqElemDescRef= pSeqDesc->pType; // type of the Sequence' elements 2035 Type elemType( pSeqElemDescRef); 2036 _typelib_TypeDescription* pSeqElemDesc=NULL; | 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 --- 2020 unchanged lines hidden (view full) --- 2029 // get the size of the elements 2030 typelib_TypeDescription *pDesc= NULL; 2031 type.getDescription( &pDesc); 2032 2033 typelib_IndirectTypeDescription *pSeqDesc= reinterpret_cast<typelib_IndirectTypeDescription*>(pDesc); 2034 typelib_TypeDescriptionReference *pSeqElemDescRef= pSeqDesc->pType; // type of the Sequence' elements 2035 Type elemType( pSeqElemDescRef); 2036 _typelib_TypeDescription* pSeqElemDesc=NULL; |
2037 TYPELIB_DANGER_GET( &pSeqElemDesc, pSeqElemDescRef) | 2037 TYPELIB_DANGER_GET( &pSeqElemDesc, pSeqElemDescRef); |
2038 sal_uInt32 nelementSize= pSeqElemDesc->nSize; | 2038 sal_uInt32 nelementSize= pSeqElemDesc->nSize; |
2039 TYPELIB_DANGER_RELEASE( pSeqElemDesc) | 2039 TYPELIB_DANGER_RELEASE( pSeqElemDesc); |
2040 2041 uno_Sequence *p_uno_Seq; 2042 uno_sequence_construct( &p_uno_Seq, pDesc, NULL, length, cpp_acquire); 2043 2044 typelib_TypeClass typeElement= pSeqDesc->pType->eTypeClass; 2045 char *pArray= p_uno_Seq->elements; 2046 2047 // Get All properties in the object, convert their values to the expected type and --- 384 unchanged lines hidden --- | 2040 2041 uno_Sequence *p_uno_Seq; 2042 uno_sequence_construct( &p_uno_Seq, pDesc, NULL, length, cpp_acquire); 2043 2044 typelib_TypeClass typeElement= pSeqDesc->pType->eTypeClass; 2045 char *pArray= p_uno_Seq->elements; 2046 2047 // Get All properties in the object, convert their values to the expected type and --- 384 unchanged lines hidden --- |