summaryrefslogtreecommitdiff
path: root/fpicker/source/win32/folderpicker/MtaFop.hxx
diff options
context:
space:
mode:
authorTino Rachui <tra@openoffice.org>2002-03-27 09:41:14 +0000
committerTino Rachui <tra@openoffice.org>2002-03-27 09:41:14 +0000
commit0ee03aaff580079dcf0aa82422088e63907a7731 (patch)
tree91ad44dc32167f2a1b706341d332fcc7062f9841 /fpicker/source/win32/folderpicker/MtaFop.hxx
parentd9ea464140d08ccfd0af74d5ae276ba116948242 (diff)
#89491#check for Win2000 removed, always allocating a buffer of 32k if not otherwise specified
Diffstat (limited to 'fpicker/source/win32/folderpicker/MtaFop.hxx')
-rw-r--r--fpicker/source/win32/folderpicker/MtaFop.hxx21
1 files changed, 8 insertions, 13 deletions
diff --git a/fpicker/source/win32/folderpicker/MtaFop.hxx b/fpicker/source/win32/folderpicker/MtaFop.hxx
index dc1562d33122..529aa4512887 100644
--- a/fpicker/source/win32/folderpicker/MtaFop.hxx
+++ b/fpicker/source/win32/folderpicker/MtaFop.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: MtaFop.hxx,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: tra $ $Date: 2001-10-09 08:07:04 $
+ * last change: $Author: tra $ $Date: 2002-03-27 10:41:14 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -92,17 +92,12 @@ class CAutoPathBuff
public:
CAutoPathBuff( size_t size = 0 )
{
- if ( !size )
- {
- if ( IsWin2000( ) )
- size = 32000; // max path length under Win2000
- else
- size = MAX_PATH;
- }
-
- pBuff = new sal_Unicode[ size ];
- OSL_POSTCOND( pBuff, \
- "Could not allocate path buffer" );
+ if (0 == size)
+ size = 32000; // max path length under Win2000
+
+ pBuff = new sal_Unicode[size];
+
+ OSL_POSTCOND(pBuff,"Could not allocate path buffer");
}
~CAutoPathBuff( )