substitutepathvars.cxx (07a3d7f1) | substitutepathvars.cxx (036fea61) |
---|---|
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 --- 962 unchanged lines hidden (view full) --- 971 rtl::OUString aMsg( RTL_CONSTASCII_USTRINGPARAM( "Endless recursion detected. Cannot substitute variables!" )); 972 throw NoSuchElementException( aMsg, (cppu::OWeakObject *)this ); 973 } 974 else 975 aResult = rText; 976 } 977 else 978 { | 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 --- 962 unchanged lines hidden (view full) --- 971 rtl::OUString aMsg( RTL_CONSTASCII_USTRINGPARAM( "Endless recursion detected. Cannot substitute variables!" )); 972 throw NoSuchElementException( aMsg, (cppu::OWeakObject *)this ); 973 } 974 else 975 aResult = rText; 976 } 977 else 978 { |
979 // variable in text but unknwon! | 979 // variable in text but unknown! |
980 if ( bSubstRequired ) 981 { 982 rtl::OUString aMsg( RTL_CONSTASCII_USTRINGPARAM( "Unknown variable found!" )); 983 throw NoSuchElementException( aMsg, (cppu::OWeakObject *)this ); 984 } 985 else 986 aResult = aWorkText; 987 } --- 263 unchanged lines hidden --- | 980 if ( bSubstRequired ) 981 { 982 rtl::OUString aMsg( RTL_CONSTASCII_USTRINGPARAM( "Unknown variable found!" )); 983 throw NoSuchElementException( aMsg, (cppu::OWeakObject *)this ); 984 } 985 else 986 aResult = aWorkText; 987 } --- 263 unchanged lines hidden --- |