tempfile.cxx (89b56da7) tempfile.cxx (24c56ab9)
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

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

75
76 // test for valid filename
77 {
78 ::osl::DirectoryItem aItem;
79 sal_Int32 i = aRet.getLength();
80 if ( aRet[i-1] == '/' )
81 i--;
82
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

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

75
76 // test for valid filename
77 {
78 ::osl::DirectoryItem aItem;
79 sal_Int32 i = aRet.getLength();
80 if ( aRet[i-1] == '/' )
81 i--;
82
83 if ( DirectoryItem::get( ::rtl::OUString( aRet, i ), aItem ) == FileBase::E_None )
83 if ( DirectoryItem::get( ::rtl::OUString( aRet.getStr(), i ), aItem ) == FileBase::E_None )
84 aName = aRet;
85 }
86 }
87
88 if ( !aName.Len() )
89 {
90 // if no parent or invalid parent : use system directory
91 ::rtl::OUString& rTempNameBase_Impl = TempNameBase_Impl::get();

--- 206 unchanged lines hidden ---
84 aName = aRet;
85 }
86 }
87
88 if ( !aName.Len() )
89 {
90 // if no parent or invalid parent : use system directory
91 ::rtl::OUString& rTempNameBase_Impl = TempNameBase_Impl::get();

--- 206 unchanged lines hidden ---