propertybag.cxx (dde7d3fa) propertybag.cxx (49b34792)
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

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

83 m_pImpl->m_bAllowEmptyPropertyName = i_isAllowed;
84 }
85
86 //--------------------------------------------------------------------
87 namespace
88 {
89 void lcl_checkForEmptyName( const bool _allowEmpty, const ::rtl::OUString& _name )
90 {
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

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

83 m_pImpl->m_bAllowEmptyPropertyName = i_isAllowed;
84 }
85
86 //--------------------------------------------------------------------
87 namespace
88 {
89 void lcl_checkForEmptyName( const bool _allowEmpty, const ::rtl::OUString& _name )
90 {
91 if ( !_allowEmpty && !_name.getLength() )
91 if ( !_allowEmpty && _name.isEmpty() )
92 throw IllegalArgumentException(
93 ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "The property name must not be empty." ) ),
94 // TODO: resource
95 NULL,
96 1
97 );
98 }
99

--- 118 unchanged lines hidden ---
92 throw IllegalArgumentException(
93 ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "The property name must not be empty." ) ),
94 // TODO: resource
95 NULL,
96 1
97 );
98 }
99

--- 118 unchanged lines hidden ---