MNSFolders.cxx (6a653daf) MNSFolders.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

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

91 {
92 ::rtl::OUString sProductPath;
93
94 // check whether we have an anevironment variable which helps us
95 const char* pProfileByEnv = getenv( ProductRootEnvironmentVariable[ productIndex ] );
96 if ( pProfileByEnv )
97 {
98 sProductPath = ::rtl::OUString( pProfileByEnv, rtl_str_getLength( pProfileByEnv ), osl_getThreadTextEncoding() );
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

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

91 {
92 ::rtl::OUString sProductPath;
93
94 // check whether we have an anevironment variable which helps us
95 const char* pProfileByEnv = getenv( ProductRootEnvironmentVariable[ productIndex ] );
96 if ( pProfileByEnv )
97 {
98 sProductPath = ::rtl::OUString( pProfileByEnv, rtl_str_getLength( pProfileByEnv ), osl_getThreadTextEncoding() );
99 // asume that this is fine, no further checks
99 // assume that this is fine, no further checks
100 }
101 else
102 {
103 ::rtl::OUString sProductDirCandidate;
104 const char* pProfileRegistry = "profiles.ini";
105
106 // check all possible candidates
107 for ( size_t i=0; i<3; ++i )

--- 40 unchanged lines hidden ---
100 }
101 else
102 {
103 ::rtl::OUString sProductDirCandidate;
104 const char* pProfileRegistry = "profiles.ini";
105
106 // check all possible candidates
107 for ( size_t i=0; i<3; ++i )

--- 40 unchanged lines hidden ---