[Libreoffice-commits] .: basic/source desktop/source sfx2/source ucb/source
Christina Rossmanith
crossmanith at kemper.freedesktop.org
Sun May 1 08:08:42 PDT 2011
basic/source/runtime/methods.cxx | 2 +-
desktop/source/app/userinstall.cxx | 2 +-
sfx2/source/doc/docfile.cxx | 10 +++++-----
ucb/source/ucp/file/shell.cxx | 24 ++++++++++++------------
4 files changed, 19 insertions(+), 19 deletions(-)
New commits:
commit 7200b28f3a1fa6822afcd7cfe164f809b43ce960
Author: Christina Rossmanith <ChrRossmanith at web.de>
Date: Tue Apr 19 22:11:07 2011 +0200
remove Attribute_XXX in favor of osl_File_Attribute_XXX (desktop)
diff --git a/basic/source/runtime/methods.cxx b/basic/source/runtime/methods.cxx
index 70eb213..16333e0 100644
--- a/basic/source/runtime/methods.cxx
+++ b/basic/source/runtime/methods.cxx
@@ -2920,7 +2920,7 @@ RTLFUNC(GetAttr)
FileStatus aFileStatus( osl_FileStatus_Mask_Attributes | osl_FileStatus_Mask_Type );
aItem.getFileStatus( aFileStatus );
sal_uInt64 nAttributes = aFileStatus.getAttributes();
- sal_Bool bReadOnly = (nAttributes & Attribute_ReadOnly) != 0;
+ sal_Bool bReadOnly = (nAttributes & osl_File_Attribute_ReadOnly) != 0;
FileStatus::Type aType = aFileStatus.getFileType();
sal_Bool bDirectory = isFolder( aType );
diff --git a/desktop/source/app/userinstall.cxx b/desktop/source/app/userinstall.cxx
index ed36cda..9c3ce42 100644
--- a/desktop/source/app/userinstall.cxx
+++ b/desktop/source/app/userinstall.cxx
@@ -240,7 +240,7 @@ namespace desktop {
#ifdef UNIX
// set safer permissions for the user directory by default
- File::setAttributes(aUserPath, Attribute_OwnWrite| Attribute_OwnRead| Attribute_OwnExe);
+ File::setAttributes(aUserPath, osl_File_Attribute_OwnWrite| osl_File_Attribute_OwnRead| osl_File_Attribute_OwnExe);
#endif
// copy data from shared data directory of base installation
diff --git a/sfx2/source/doc/docfile.cxx b/sfx2/source/doc/docfile.cxx
index 39b0e86..3439a00 100644
--- a/sfx2/source/doc/docfile.cxx
+++ b/sfx2/source/doc/docfile.cxx
@@ -3332,11 +3332,11 @@ sal_Bool SfxMedium::SetWritableForUserOnly( const ::rtl::OUString& aURL )
{
sal_uInt64 nAttributes = aFileStatus.getAttributes();
- nAttributes &= ~(Attribute_OwnWrite |
- Attribute_GrpWrite |
- Attribute_OthWrite |
- Attribute_ReadOnly);
- nAttributes |= Attribute_OwnWrite;
+ nAttributes &= ~(osl_File_Attribute_OwnWrite |
+ osl_File_Attribute_GrpWrite |
+ osl_File_Attribute_OthWrite |
+ osl_File_Attribute_ReadOnly);
+ nAttributes |= osl_File_Attribute_OwnWrite;
bResult = ( osl::File::setAttributes( aURL, nAttributes ) == ::osl::FileBase::E_None );
}
diff --git a/ucb/source/ucp/file/shell.cxx b/ucb/source/ucp/file/shell.cxx
index fec88f8..426a939 100644
--- a/ucb/source/ucp/file/shell.cxx
+++ b/ucb/source/ucp/file/shell.cxx
@@ -951,23 +951,23 @@ shell::setv( const rtl::OUString& aUnqPath,
if(err == osl::FileBase::E_None) {
if(values[i].Name == IsReadOnly)
{
- nAttributes &= ~(Attribute_OwnWrite |
- Attribute_GrpWrite |
- Attribute_OthWrite |
- Attribute_ReadOnly);
+ nAttributes &= ~(osl_File_Attribute_OwnWrite |
+ osl_File_Attribute_GrpWrite |
+ osl_File_Attribute_OthWrite |
+ osl_File_Attribute_ReadOnly);
if(value)
- nAttributes |= Attribute_ReadOnly;
+ nAttributes |= osl_File_Attribute_ReadOnly;
else
nAttributes |= (
- Attribute_OwnWrite |
- Attribute_GrpWrite |
- Attribute_OthWrite);
+ osl_File_Attribute_OwnWrite |
+ osl_File_Attribute_GrpWrite |
+ osl_File_Attribute_OthWrite);
}
else if(values[i].Name == IsHidden)
{
- nAttributes &= ~(Attribute_Hidden);
+ nAttributes &= ~(osl_File_Attribute_Hidden);
if(value)
- nAttributes |= Attribute_Hidden;
+ nAttributes |= osl_File_Attribute_Hidden;
}
err = osl::File::setAttributes(
aUnqPath,nAttributes);
@@ -2426,7 +2426,7 @@ shell::commit( const shell::ContentMap::iterator& it,
if( aFileStatus.isValid( osl_FileStatus_Mask_Attributes ) )
{
sal_uInt64 Attr = aFileStatus.getAttributes();
- sal_Bool readonly = ( Attr & Attribute_ReadOnly ) != 0;
+ sal_Bool readonly = ( Attr & osl_File_Attribute_ReadOnly ) != 0;
it1->setValue( uno::makeAny( readonly ) );
}
}
@@ -2437,7 +2437,7 @@ shell::commit( const shell::ContentMap::iterator& it,
if( aFileStatus.isValid( osl_FileStatus_Mask_Attributes ) )
{
sal_uInt64 Attr = aFileStatus.getAttributes();
- sal_Bool ishidden = ( Attr & Attribute_Hidden ) != 0;
+ sal_Bool ishidden = ( Attr & osl_File_Attribute_Hidden ) != 0;
it1->setValue( uno::makeAny( ishidden ) );
}
}
More information about the Libreoffice-commits
mailing list