summaryrefslogtreecommitdiff
path: root/psprint
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2005-12-28 16:09:13 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2005-12-28 16:09:13 +0000
commit523c4d7510d4dc21ac1659ca8b240f069163ac7b (patch)
treeec28fd079dddabc71fb38368036386f690a2b12b /psprint
parent6285a52d7b5a4276ae9410c8dab78785c6ad1dd1 (diff)
INTEGRATION: CWS gslperform01 (1.19.8); FILE MERGED
2005/11/21 13:56:51 pl 1.19.8.2: #i56542# fix a typo 2005/11/21 13:55:12 pl 1.19.8.1: #i56542# do not stat each PPD file on startup
Diffstat (limited to 'psprint')
-rw-r--r--psprint/source/helper/ppdparser.cxx12
1 files changed, 4 insertions, 8 deletions
diff --git a/psprint/source/helper/ppdparser.cxx b/psprint/source/helper/ppdparser.cxx
index 9ea3bdfa31fe..95d2b652ce91 100644
--- a/psprint/source/helper/ppdparser.cxx
+++ b/psprint/source/helper/ppdparser.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: ppdparser.cxx,v $
*
- * $Revision: 1.19 $
+ * $Revision: 1.20 $
*
- * last change: $Author: rt $ $Date: 2005-09-08 16:43:52 $
+ * last change: $Author: hr $ $Date: 2005-12-28 17:09:13 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -80,12 +80,8 @@ void PPDParser::scanPPDDir( const String& rDir )
INetURLObject aPPDDir(rDir);
while( aDir.getNextItem( aItem ) == osl::FileBase::E_None )
{
- osl::FileStatus aStatus( FileStatusMask_FileName |
- FileStatusMask_Type
- );
- if( aItem.getFileStatus( aStatus ) == osl::FileBase::E_None &&
- ( aStatus.getFileType() == osl::FileStatus::Regular ||
- aStatus.getFileType() == osl::FileStatus::Link ) )
+ osl::FileStatus aStatus( FileStatusMask_FileName );
+ if( aItem.getFileStatus( aStatus ) == osl::FileBase::E_None )
{
INetURLObject aPPDFile = aPPDDir;
aPPDFile.Append( aStatus.getFileName() );