unmarshal.cxx (37adc4f0) unmarshal.cxx (0848378b)
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

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

239 rtl::OUString(
240 RTL_CONSTASCII_USTRINGPARAM(
241 "binaryurp::Unmarshal: OID contains non-ASCII"
242 " character")),
243 css::uno::Reference< css::uno::XInterface >());
244 }
245 }
246 sal_uInt16 idx = readCacheIndex();
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

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

239 rtl::OUString(
240 RTL_CONSTASCII_USTRINGPARAM(
241 "binaryurp::Unmarshal: OID contains non-ASCII"
242 " character")),
243 css::uno::Reference< css::uno::XInterface >());
244 }
245 }
246 sal_uInt16 idx = readCacheIndex();
247 if (oid.getLength() == 0 && idx != cache::ignore) {
248 if (state_.oidCache[idx].getLength() == 0) {
247 if (oid.isEmpty() && idx != cache::ignore) {
248 if ( state_.oidCache[idx].isEmpty() ) {
249 throw css::io::IOException(
250 rtl::OUString(
251 RTL_CONSTASCII_USTRINGPARAM(
252 "binaryurp::Unmarshal: unknown OID cache index")),
253 css::uno::Reference< css::uno::XInterface >());
254 }
255 return state_.oidCache[idx];
256 }

--- 303 unchanged lines hidden ---
249 throw css::io::IOException(
250 rtl::OUString(
251 RTL_CONSTASCII_USTRINGPARAM(
252 "binaryurp::Unmarshal: unknown OID cache index")),
253 css::uno::Reference< css::uno::XInterface >());
254 }
255 return state_.oidCache[idx];
256 }

--- 303 unchanged lines hidden ---