marshal.cxx (37adc4f0) | marshal.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 --- 148 unchanged lines hidden (view full) --- 157 } 158} 159 160void Marshal::writeOid( 161 std::vector< unsigned char > * buffer, rtl::OUString const & oid) 162{ 163 bool found; 164 sal_uInt16 idx; | 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 --- 148 unchanged lines hidden (view full) --- 157 } 158} 159 160void Marshal::writeOid( 161 std::vector< unsigned char > * buffer, rtl::OUString const & oid) 162{ 163 bool found; 164 sal_uInt16 idx; |
165 if (oid.getLength() == 0) { | 165 if ( oid.isEmpty() ) { |
166 found = true; 167 idx = cache::ignore; 168 } else { 169 idx = state_.oidCache.add(oid, &found); 170 } 171 if (found) { 172 write8(buffer, 0); 173 } else { --- 137 unchanged lines hidden --- | 166 found = true; 167 idx = cache::ignore; 168 } else { 169 idx = state_.oidCache.add(oid, &found); 170 } 171 if (found) { 172 write8(buffer, 0); 173 } else { --- 137 unchanged lines hidden --- |