Bump for 3.6-28
[LibreOffice.git] / libcmis / libcmis-0.2.3.patch
blob3b21e70db4afa10454adc32d7c5b87a0e63840b6
1 diff -ru libcmis-0.2.3/src/libcmis/atom-document.cxx misc/build/libcmis-0.2.3/src/libcmis/atom-document.cxx
2 --- libcmis-0.2.3/src/libcmis/atom-document.cxx 2012-07-02 14:39:04.815222889 +0200
3 +++ misc/build/libcmis-0.2.3/src/libcmis/atom-document.cxx 2012-07-02 14:41:09.088229625 +0200
4 @@ -129,15 +129,22 @@
5 vector< string > AtomDocument::getPaths( )
7 vector< string > paths;
8 - vector< libcmis::FolderPtr > parents = getParents( );
9 - for ( vector< libcmis::FolderPtr >::iterator it = parents.begin( );
10 - it != parents.end(); ++it )
11 + try
13 - string path = ( *it )->getPath( );
14 - if ( path[path.size() - 1] != '/' )
15 - path += "/";
16 - path += getName( );
17 - paths.push_back( path );
18 + vector< libcmis::FolderPtr > parents = getParents( );
19 + for ( vector< libcmis::FolderPtr >::iterator it = parents.begin( );
20 + it != parents.end(); ++it )
21 + {
22 + string path = ( *it )->getPath( );
23 + if ( path[path.size() - 1] != '/' )
24 + path += "/";
25 + path += getName( );
26 + paths.push_back( path );
27 + }
28 + }
29 + catch ( const libcmis::Exception& )
30 + {
31 + // We may not have the permission to get the parents
33 return paths;