To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=56542
Issue #:|56542
Summary:|psprint PPD statting issue ...
Component:|gsl
Version:|680m134
Platform:|All
URL:|
OS/Version:|All
Status:|NEW
Status whiteboard:|
Keywords:|
Resolution:|
Issue type:|PATCH
Priority:|P3
Subcomponent:|code
Assigned to:|pl
Reported by:|mmeeks
------- Additional comments from [EMAIL PROTECTED] Mon Oct 24 08:18:30 -0700
2005 -------
psprint likes to stat lots of PPDs - hopefully this is at 'idle' rather than
during startup, but either way; there's no need to stat files we installed
ourselves to determine their type etc.
--- psprint/source/helper/ppdparser.cxx 8 Sep 2005 16:43:52 -0000 1.19
+++ psprint/source/helper/ppdparser.cxx 24 Oct 2005 15:28:03 -0000
@@ -80,12 +80,19 @@ void PPDParser::scanPPDDir( const String
INetURLObject aPPDDir(rDir);
while( aDir.getNextItem( aItem ) == osl::FileBase::E_None )
{
- osl::FileStatus aStatus( FileStatusMask_FileName
|
- FileStatusMask_Type
+ osl::FileStatus aStatus( FileStatusMask_FileName
+#ifdef UNNECESSARILY_SLOW
+ | FileStatusMask_Type
+#endif
);
if( aItem.getFileStatus( aStatus ) == osl::FileBase::E_None &&
+#ifdef UNNECESSARILY_SLOW
( aStatus.getFileType() == osl::FileStatus::Regular ||
- aStatus.getFileType() == osl::FileStatus::Link ) )
+ aStatus.getFileType() == osl::FileStatus::Link )
+#else
+ 1
+#endif
+ )
{
INetURLObject aPPDFile = aPPDDir;
aPPDFile.Append( aStatus.getFileName() );
HTH.
---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]