MNSProfileDiscover.cxx (7f7eeada) | MNSProfileDiscover.cxx (30acf5e8) |
---|---|
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 --- 176 unchanged lines hidden (view full) --- 185 } 186 187 ::rtl::OUString ProfileAccess::getDefaultProfile( ::com::sun::star::mozilla::MozillaProductType product ) throw (::com::sun::star::uno::RuntimeException) 188 { 189 sal_Int32 index=product; 190 ProductStruct &m_Product = m_ProductProfileList[index]; 191 if (m_Product.mCurrentProfileName.getLength() != 0) 192 { | 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 --- 176 unchanged lines hidden (view full) --- 185 } 186 187 ::rtl::OUString ProfileAccess::getDefaultProfile( ::com::sun::star::mozilla::MozillaProductType product ) throw (::com::sun::star::uno::RuntimeException) 188 { 189 sal_Int32 index=product; 190 ProductStruct &m_Product = m_ProductProfileList[index]; 191 if (m_Product.mCurrentProfileName.getLength() != 0) 192 { |
193 //default profile setted in mozilla registry | 193 //default profile set in mozilla registry |
194 return m_Product.mCurrentProfileName; 195 } 196 if (m_Product.mProfileList.size() == 0) 197 { 198 //there are not any profiles 199 return ::rtl::OUString(); 200 } 201 ProfileStruct * aProfile = (*m_Product.mProfileList.begin()).second; --- 25 unchanged lines hidden --- | 194 return m_Product.mCurrentProfileName; 195 } 196 if (m_Product.mProfileList.size() == 0) 197 { 198 //there are not any profiles 199 return ::rtl::OUString(); 200 } 201 ProfileStruct * aProfile = (*m_Product.mProfileList.begin()).second; --- 25 unchanged lines hidden --- |