AccessibleTextHelper.cxx (cde9e8dc) | AccessibleTextHelper.cxx (9ec58d04) |
---|---|
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 --- 61 unchanged lines hidden (view full) --- 70 Reference< awt::XWindow > xWindow; 71 72 if( aArguments.getLength() >= 3 ) 73 { 74 aArguments[0] >>= aCID; 75 aArguments[1] >>= xEventSource; 76 aArguments[2] >>= xWindow; 77 } | 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 --- 61 unchanged lines hidden (view full) --- 70 Reference< awt::XWindow > xWindow; 71 72 if( aArguments.getLength() >= 3 ) 73 { 74 aArguments[0] >>= aCID; 75 aArguments[1] >>= xEventSource; 76 aArguments[2] >>= xWindow; 77 } |
78 OSL_ENSURE( aCID.getLength() > 0, "Empty CID" ); | 78 OSL_ENSURE( !aCID.isEmpty(), "Empty CID" ); |
79 OSL_ENSURE( xEventSource.is(), "Empty Event Source" ); 80 OSL_ENSURE( xWindow.is(), "Empty Window" ); | 79 OSL_ENSURE( xEventSource.is(), "Empty Event Source" ); 80 OSL_ENSURE( xWindow.is(), "Empty Window" ); |
81 if( !xEventSource.is() || aCID.getLength() == 0 ) | 81 if( !xEventSource.is() || aCID.isEmpty() ) |
82 return; 83 84 // /-- solar 85 ::vos::OGuard aSolarGuard( Application::GetSolarMutex() ); 86 87 if( m_pTextHelper ) 88 delete m_pTextHelper; 89 --- 110 unchanged lines hidden --- | 82 return; 83 84 // /-- solar 85 ::vos::OGuard aSolarGuard( Application::GetSolarMutex() ); 86 87 if( m_pTextHelper ) 88 delete m_pTextHelper; 89 --- 110 unchanged lines hidden --- |