nodelist.cxx (e9cbe144) nodelist.cxx (b862c97c)
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

--- 21 unchanged lines hidden (view full) ---

30 CNodeList::CNodeList(
31 ::rtl::Reference<DOM::CDocument> const& pDocument,
32 ::osl::Mutex & rMutex,
33 boost::shared_ptr<xmlXPathObject> const& rxpathObj)
34 : m_pDocument(pDocument)
35 , m_rMutex(rMutex)
36 , m_pNodeSet(0)
37 {
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

--- 21 unchanged lines hidden (view full) ---

30 CNodeList::CNodeList(
31 ::rtl::Reference<DOM::CDocument> const& pDocument,
32 ::osl::Mutex & rMutex,
33 boost::shared_ptr<xmlXPathObject> const& rxpathObj)
34 : m_pDocument(pDocument)
35 , m_rMutex(rMutex)
36 , m_pNodeSet(0)
37 {
38 if (rxpathObj != NULL && rxpathObj->type == XPATH_NODESET)
38 if( bool(rxpathObj) && rxpathObj->type == XPATH_NODESET)
39 {
40 m_pNodeSet = rxpathObj->nodesetval;
41 m_pXPathObj = rxpathObj;
42 }
43 }
44
45 /**
46 The number of nodes in the list.

--- 28 unchanged lines hidden ---
39 {
40 m_pNodeSet = rxpathObj->nodesetval;
41 m_pXPathObj = rxpathObj;
42 }
43 }
44
45 /**
46 The number of nodes in the list.

--- 28 unchanged lines hidden ---