Fix build with clang
This commit is contained in:
		
							parent
							
								
									46d5fc1fa0
								
							
						
					
					
						commit
						c5867e2293
					
				
					 4 changed files with 3 additions and 7 deletions
				
			
		|  | @ -1027,7 +1027,7 @@ void Instance::Private::unregisterRequest(mtpRequestId requestId) { | |||
| 		auto handling = 0; | ||||
| 		do { | ||||
| 			handling = toResend.size(); | ||||
| 			for (const auto [resendingId, afterId] : _dependentRequests) { | ||||
| 			for (const auto &[resendingId, afterId] : _dependentRequests) { | ||||
| 				if (toRemove.contains(afterId)) { | ||||
| 					toRemove.emplace(resendingId); | ||||
| 					toResend.emplace(resendingId); | ||||
|  |  | |||
|  | @ -90,7 +90,6 @@ void AbstractSingleFilePreview::paintEvent(QPaintEvent *e) { | |||
| 	const auto w = width() | ||||
| 		- st::boxPhotoPadding.left() | ||||
| 		- st::boxPhotoPadding.right(); | ||||
| 	const auto h = height(); | ||||
| 	const auto &st = !isThumbedLayout(_data) | ||||
| 		? st::attachPreviewLayout | ||||
| 		: st::attachPreviewThumbLayout; | ||||
|  | @ -165,9 +164,6 @@ void AbstractSingleFilePreview::updateTextWidthFor(Data &data) { | |||
| 	const auto &st = !isThumbedLayout(data) | ||||
| 		? st::attachPreviewLayout | ||||
| 		: st::attachPreviewThumbLayout; | ||||
| 	const auto nameleft = st.thumbSize + st.padding.right(); | ||||
| 	const auto nametop = st.nameTop; | ||||
| 	const auto statustop = st.statusTop; | ||||
| 	const auto buttonsCount = (_type == AttachControls::Type::EditOnly) | ||||
| 		? 1 | ||||
| 		: (_type == AttachControls::Type::Full) | ||||
|  |  | |||
|  | @ -18,11 +18,11 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL | |||
| namespace Window { | ||||
| namespace { | ||||
| 
 | ||||
| #ifdef DESKTOP_APP_SPECIAL_TARGET | ||||
| constexpr auto kMinimalSkip = 7; | ||||
| constexpr auto kSoonSkip = 30; | ||||
| constexpr auto kNowSkip = 90; | ||||
| 
 | ||||
| #ifdef DESKTOP_APP_SPECIAL_TARGET | ||||
| class Bar : public Ui::RpWidget { | ||||
| public: | ||||
| 	Bar(not_null<QWidget*> parent, QDate date); | ||||
|  |  | |||
|  | @ -1 +1 @@ | |||
| Subproject commit 4a722c1f267b2491f8e9ef6200ae4ec61b46f397 | ||||
| Subproject commit 6541e37e2de0431df22c220d80ffbb1b498f335b | ||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Ilya Fedin
						Ilya Fedin