AsynchronousCall.cxx (95a18594) | AsynchronousCall.cxx (d64288ea) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 58 unchanged lines hidden (view full) --- 67 68 69 70void AsynchronousCall::CancelRequest (void) 71{ 72 if (mnCallId != 0) 73 { 74 Application::RemoveUserEvent(mnCallId); | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 58 unchanged lines hidden (view full) --- 67 68 69 70void AsynchronousCall::CancelRequest (void) 71{ 72 if (mnCallId != 0) 73 { 74 Application::RemoveUserEvent(mnCallId); |
75 mnCallId = -1; | 75 mnCallId = 0; |
76 } 77} 78 79 80 81 82IMPL_LINK(AsynchronousCall, HandleUserCall, void*, EMPTYARG ) 83{ 84 mnCallId = 0; 85 if (maAction) 86 maAction(); 87 88 return sal_True; 89} 90 91 92} } // end of namespace sfx2::sidebar 93 | 76 } 77} 78 79 80 81 82IMPL_LINK(AsynchronousCall, HandleUserCall, void*, EMPTYARG ) 83{ 84 mnCallId = 0; 85 if (maAction) 86 maAction(); 87 88 return sal_True; 89} 90 91 92} } // end of namespace sfx2::sidebar 93 |