atkimage.cxx (9f62ea84) | atkimage.cxx (24c56ab9) |
---|---|
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 --- 27 unchanged lines hidden (view full) --- 36static G_CONST_RETURN gchar * 37getAsConst( rtl::OUString rString ) 38{ 39 static const int nMax = 10; 40 static rtl::OString aUgly[nMax]; 41 static int nIdx = 0; 42 nIdx = (nIdx + 1) % nMax; 43 aUgly[nIdx] = rtl::OUStringToOString( rString, RTL_TEXTENCODING_UTF8 ); | 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 --- 27 unchanged lines hidden (view full) --- 36static G_CONST_RETURN gchar * 37getAsConst( rtl::OUString rString ) 38{ 39 static const int nMax = 10; 40 static rtl::OString aUgly[nMax]; 41 static int nIdx = 0; 42 nIdx = (nIdx + 1) % nMax; 43 aUgly[nIdx] = rtl::OUStringToOString( rString, RTL_TEXTENCODING_UTF8 ); |
44 return aUgly[ nIdx ]; | 44 return aUgly[ nIdx ].getStr(); |
45} 46 47static accessibility::XAccessibleImage* 48 getImage( AtkImage *pImage ) throw (uno::RuntimeException) 49{ 50 AtkObjectWrapper *pWrap = ATK_OBJECT_WRAPPER( pImage ); 51 if( pWrap ) 52 { --- 82 unchanged lines hidden --- | 45} 46 47static accessibility::XAccessibleImage* 48 getImage( AtkImage *pImage ) throw (uno::RuntimeException) 49{ 50 AtkObjectWrapper *pWrap = ATK_OBJECT_WRAPPER( pImage ); 51 if( pWrap ) 52 { --- 82 unchanged lines hidden --- |